Re: Script expects quoted text mystery
Re: Script expects quoted text mystery
- Subject: Re: Script expects quoted text mystery
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 14 Jan 2004 22:38:35 -0800
At 09:31p -0800 01/14/2004, Paul Berkowitz didst inscribe upon an
electronic papyrus:
On 1/14/04 8:13 PM, "Gary Lists" <email@hidden> wrote:
> You can try this method (making X-adjustments as needed):
>
> set creaType to "iCAB"
> tell app "Finder" to set myApp to the first process whose ,
> creator type is (creaType as <<class type>>) as <<class psn >>
> tell myApp
> -- now you're cooking with gas
> end tell
>
> This is the most reliable that I have found (and use.)
Look, 9 is fine but this isn't 9, it's 7.6. It's the historical method that
John Delacour first found. It was first superseded by Emmanuel's method
outlined in Smile Help, which is much easier to use, where you get the
application path to the file:
set creaType to "iCAB"
tell app "Finder" to set myAppPath to application file id creaType as string
tell application myAppPath
-- you still have to use <<raw codes>> for everything, as above
end tell
Uhh, that's not quite the same. You need to get the application file
of the running process to be sure the right one is targeted -- and
note that the beta of System Events breaks it, so if you're running
Jaguar with the beta, be sure to revert to the one w/o all the UI
beta stuff in it, if you want to be able to get the application file
of a running process.
-boo
who keeps forgetting to revert
_______________________________________________
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.