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: Fri, 9 Jul 2004 17:48:57 -0700
At 07:26p -0400 07/09/2004, Thierry Lavallie didst inscribe upon an
electronic papyrus:
Hi,
Could anyone explain why:
application process target_app as +class psn ; as string = "GraphicConverter
PPC")
returns TRUE
While
Set MYAPP to application process target_app as +class psn ; as string
Tell application MYAPP
--DOES NOT WORK
Tell application "GraphicConverter PPC"
--WORKS
I think you went a little coercion crazy there, without really
understanding what you were coercing or why.
A class of PSN *is* 'application "Foo"' -- it is a complete reference
to the running application, so you just tell such a variable directly:
tell application "Finder"
set MYAPP to (process 1 whose creator type is "GKON") as <<class psn >>
end tell
using terms from application "GraphicConverter PPC"
tell MYAPP
--gc commands
end tell
end using terms from
-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.