Re: Getting label from a record
Re: Getting label from a record
- Subject: Re: Getting label from a record
- From: EBI Aktivitet <email@hidden>
- Date: Tue, 18 Nov 2003 16:22:07 +0100
Den 03-11-18 01.10, skrev "kai" <email@hidden>:
>
getKeys from r with dupes
>
>
--> {"date", "list", "list", "number", "string", "alias", "path", "name",
>
"disk", "folder", "file", "item", "file", "subject", "time sent", "initial
>
values", "list", "final
>
average"}
>
>
----------------------------
>
>
getKeys from r without dupes
>
>
--> {"date", "list", "number", "string", "alias", "path", "name", "disk",
>
"folder", "file", "item", "subject", "time sent", "initial values", "final
>
average"}
Well, I'm in a state of deep shock... Michelles code I could follow, but
Kai, what can I say? Impressed is not the right word... :-) Unfortunately
this also means that my limited intellect can't really modify the script you
posted, to make it work for me. Actually, right now, I didn't get it to work
at all :-( Well, it does work perfectly on your sample record and similar
records, but not on the record of document properties Photoshop throws at
me...
I can get into a really long explanation of the problem, and all the
solutions I tried, without success, but before I do that, lets start with
something that might be simple to solve...
It seems that the result of asking an app for document properties returns a
record, but if I check the class of the variable where this record is
stored, the class is "Document". This might be because applescript thinks
I'm asking for the class of the properties stored, not the class of the
variable. In any case, it brakes your script, since the first line checks
that we're working on a record.
I've tried changing the variable to string, and I've also tried changing
each item of the variable to string, but it's not allowed. The only thing I
can do with the result from asking for document properties seems to be
record or list.
In any case, thanks to Michelle pointing me in the right direction, using
the result of the error, I got going on a solution. I'm posting it in a
separate mail, since it's rather long.
I feel there should be a better way of doing this, like asking for the
"label" or something similar, but I suppose we have to accept what's
available :-)
Thanks for all help!
Regards, Adim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.