Error on property command

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Error on property command

Post by serendipity »

I just tried to get the artist name of a mp3 file and got an error.

I typed this in address bar:

text (property ("Artist", <curitem>));

and got this:

Code: Select all

Error 	13 (0000000D)
Desc	Type mismatch
Dll	0
Proc	script_Process

Source	XYplorer
XY ver	8.10.0006
OS	Windows Vista (Service Pack 1)
Date	7/7/2009 15:27:51
I don't get this error if the mp3 tag has not artist defined.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Error on property command

Post by serendipity »

Same error on a doc file now:

text (property ("DocAuthor", <curitem>));

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error on property command

Post by admin »

Hmm, works fine here.

You get the same error with other properties? Or just with "artist"?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Error on property command

Post by zer0 »

I get the same error when running this script:

Code: Select all

text (property ("Genre", <curitem>));
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error on property command

Post by admin »

zer0 wrote:I get the same error when running this script:

Code: Select all

text (property ("Genre", <curitem>));
So once again Vista breaks working code, tz tz tz...

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error on property command

Post by admin »

OK, I tried a quick fix. Check out 0007.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Error on property command

Post by zer0 »

admin wrote:OK, I tried a quick fix. Check out 0007.
Tried 0007. Now the properties that caused error messages are not returning any data back aka blank text window.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Error on property command

Post by serendipity »

admin wrote:OK, I tried a quick fix. Check out 0007.
Well, if the fix was to remove the error then Yes! there is no error.
But like zer0 said you are just hiding the guys who caused this error. Does this mean i cannot retrieve "Artist" from my mp3s?

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error on property command

Post by admin »

I might have fixed that. Upload comes...

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Error on property command

Post by zer0 »

admin wrote:I might have fixed that. Upload comes...
Using 0008, there is no error message but, likewise, the information isn't retrieved either :(
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Error on property command

Post by serendipity »

With v 8.10.0008 no error here, but no Artist or DocAuthor.

BTW, to check my files i made a quick script which will show all (well atleast most) available properties in a file.

Select a file and run the below script, a text window with all available properties will be shown.

Code: Select all

//Check available properties of a file.
  $item=<curitem>;
  $p1=Access;
  $p2=Album;
  $p3=AllocSize;
  $p4=Aperture;
  $p5=Artist;
  $p6=Attrib;
  $p7=Attributes;
  $p8=AttributesDescription;
  $p9=Audio Format;
  $p10=Audio Sample Size;
  $p11=BitDepth;
  $p12=Bitrate;
  $p13=CameraModel;
  $p14=Capacity;
  $p15=Channels;
  $p16=ColorSpace;
  $p17=Company;
  $p18=Compression;
  $p19=Copyright;
  $p20=Create;
  $p21=CSCStatus;
  $p22=Data Rate;
  $p23=DateDeleted;
  $p24=DeletedFrom;
  $p25=Dimensions;
  $p26=Directory;
  $p27=Distance;
  $p28=DocAppName;
  $p29=DocAuthor;
  $p30=DocByteCount;
  $p31=DocCategory;
  $p32=DocCharCount;
  $p33=DocComments;
  $p34=DocCompany;
  $p35=DocCreatedTm;
  $p36=DocEditTime;
  $p37=DocHiddenCount;
  $p38=DocKeywords;
  $p39=DocLastAuthor;
  $p40=DocLastPrinted;
  $p41=DocLastSavedTm;
  $p42=DocLineCount;
  $p43=DocManager;
  $p44=DocNoteCount;
  $p45=DocPageCount;
  $p46=DocParaCount;
  $p47=DocPresentationTarget;
  $p48=DocRevNumber;
  $p49=DocSlideCount;
  $p50=DocSubject;
  $p51=DocTemplate;
  $p52=DocTitle;
  $p53=DocWordCount;
  $p54=DRM Description;
  $p55=Duration;
  $p56=EquipMake;
  $p57=ExposureBias;
  $p58=ExposureProg;
  $p59=ExposureTime;
  $p60=FaxCallerID;
  $p61=FaxCSID;
  $p62=FaxRecipientName;
  $p63=FaxRecipientNumber;
  $p64=FaxRouting;
  $p65=FaxSenderName;
  $p66=FaxTime;
  $p67=FaxTSID;
  $p68=FileDescription;
  $p69=FileSystem;
  $p70=FileType;
  $p71=FileVersion;
  $p72=Flash;
  $p73=FlashEnergy;
  $p74=FNumber;
  $p75=FocalLength;
  $p76=Frame Rate;
  $p77=FrameCount;
  $p78=FreeSpace;
  $p79=Genre;
  $p80=ImageX;
  $p81=ImageY;
  $p82=ISOSpeed;
  $p83=LightSource;
  $p84=LinksUpToDate;
  $p85=LinkTarget;
  $p86=Lyrics;
  $p87=Manager;
  $p88=MeteringMode;
  $p89=MMClipCount;
  $p90=Name;
  $p91=Owner;
  $p92=Play Count;
  $p93=Play Expires;
  $p94=Play Starts;
  $p95=PresentationTarget;
  $p96=ProductName;
  $p97=ProductVersion;
  $p98=Project;
  $p99=Protected;
  $p100=Rank;
  $p101=Rating;
  $p102=ResolutionX;
  $p103=ResolutionY;
  $p104=Sample Rate;
  $p105=Scale;
  $p106=ShutterSpeed;
  $p107=Size;
  $p108=Software;
  $p109=Status;
  $p110=Stream Name;
  $p111=SyncCopyIn;
  $p112=Track;
  $p113=Type;
  $p114=Video Sample Size;
  $p115=WhenTaken;
  $p116=Write;
  $p117=Year;
  
  $total=117;
  $count=1;
  copytext;
  //step;
  
  WHILE ($count < 118) {
  $property= eval($p$count);
  $prop= property ("$property", "$item");

  IF ($prop == "") {
  incr $count;
  }
  ELSE {
  copytext ("$property = $prop <crlf>", a);
  incr $count;
  }
  }
  $clip= <clipboard>;
  status "Properties copied to clipboard";
  text $clip;
  

RalphM
Posts: 2145
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Error on property command

Post by RalphM »

Needs apparently a newer version than .0005 to run. Got an error msg with .0005, but runs ok in .0008.
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Error on property command

Post by zer0 »

RalphM wrote:Needs apparently a newer version than .0005 to run. Got an error msg with .0005, but runs ok in .0008.
Yes, it needs .0005 at minimum because that's when the function was introduced. What OS are you testing it on? It appears so far only Vista users are encountering problems.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

RalphM
Posts: 2145
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Error on property command

Post by RalphM »

I'm running XP SP3 and tested the script first with .0005 when I got an error msg.
But as said, with .0008 everything was fine.
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error on property command

Post by admin »

serendipity wrote:With v 8.10.0008 no error here, but no Artist or DocAuthor. ...
Is it just these or do all properties fail under Vista?

BTW, I like your pseudo-array construct:

Code: Select all

$property= eval($p$count);
:)

Post Reply