Re: AS asking for application on every occasion
Re: AS asking for application on every occasion
- Subject: Re: AS asking for application on every occasion
- From: Walter Ian Kaye <email@hidden>
- Date: Thu, 8 Jul 2004 20:10:53 -0700
At 09:19p -0400 07/08/2004, Thierry Lavallie didst inscribe upon an
electronic papyrus:
Thanks all, But I still have a problem.
If I directly call GC, my script works perfectly:
tell application "GraphicConverter PPC"
But GraphicConverter has different names in different versions it seems.
If I set graphicConverterPath to application file id "GKON" as string, some
parts of my script do not pass syntax error check. I get "a property can't
go after this property" near "set color space of window 1 to rgb".
As if some of the properties were not accessible the same way.
So this does not work:
tell application "Finder"
set graphicConverterPath to application file id "GKON" as string
end tell
tell application graphicConverterPath
I mentioned you may need a Using Terms From block.
Try this:
tell application graphicConverterPath
using terms from application "GraphicConverter PPC"
--gc commands
end using terms from
end tell
The U.T.F. block should only affect compiling not running, and so
should not itself cause any "Where is...?"-ing.
-boo
_______________________________________________
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.