Page 1 of 2

Error on property command

Posted: 07 Jul 2009 21:37
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.

Re: Error on property command

Posted: 07 Jul 2009 21:51
by serendipity
Same error on a doc file now:

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

Re: Error on property command

Posted: 07 Jul 2009 22:06
by admin
Hmm, works fine here.

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

Re: Error on property command

Posted: 07 Jul 2009 22:15
by zer0
I get the same error when running this script:

Code: Select all

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

Re: Error on property command

Posted: 07 Jul 2009 22:21
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...

Re: Error on property command

Posted: 07 Jul 2009 22:34
by admin
OK, I tried a quick fix. Check out 0007.

Re: Error on property command

Posted: 08 Jul 2009 01:08
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.

Re: Error on property command

Posted: 08 Jul 2009 05:16
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?

Re: Error on property command

Posted: 08 Jul 2009 08:08
by admin
I might have fixed that. Upload comes...

Re: Error on property command

Posted: 08 Jul 2009 10:21
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 :(

Re: Error on property command

Posted: 08 Jul 2009 16:47
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;
  

Re: Error on property command

Posted: 09 Jul 2009 00:57
by RalphM
Needs apparently a newer version than .0005 to run. Got an error msg with .0005, but runs ok in .0008.

Re: Error on property command

Posted: 09 Jul 2009 12:05
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.

Re: Error on property command

Posted: 09 Jul 2009 20:46
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.

Re: Error on property command

Posted: 31 Jul 2009 09:30
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);
:)