Re: Getting dictionary of app (was:Getting label from a record (Reasons))
Re: Getting dictionary of app (was:Getting label from a record (Reasons))
- Subject: Re: Getting dictionary of app (was:Getting label from a record (Reasons))
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 20 Nov 2003 09:24:29 -0800
On 11/20/03 5:52 AM, "Emmanuel" <email@hidden> wrote:
>
Oh, maybe I should have told you before. You may want to try that:
>
>
----------------------------
>
dictionary of file (alias "Macintosh
>
HD:System:Library:CoreServices:Finder.app:") as list
>
----------------------------
>
>
This returns the dictionary under a structured form, rather painful to parse,
>
but - well, the content is here.
I get:
--> {dictionary of file "PB G5 HD
Panther:System:Library:CoreServices:Finder.app:"}
It compiles, it runs, but I can't do much with the result. BTW, I get the
same result omitting the term 'alias': one file is enough:
dictionary of file ((path to library folder from system domain as
Unicode text) & "CoreServices:Finder.app:") as list
--> {dictionary of file "PB G5 HD
Panther:System:Library:CoreServices:Finder.app:"}
And:
dictionary of alias ((path to library folder from system domain as Unicode
text) & "CoreServices:Finder.app:") as list
--> {dictionary of alias "PB G5 HD
Panther:System:Library:CoreServices:Finder.app:"}
Without 'as list' I get an error, although it compiles fine.
How do get this "structured form"? Do you have to be in Smile itself? I do
have Satimage osax installed, but 'dictionary' does not appear to be defined
there nor in any other osax. It appears to be an AppleScript term. Does
anyone know what it is?
--
Paul Berkowitz
_______________________________________________
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.