Re: Stuck trying to use creatorid to control IE
Re: Stuck trying to use creatorid to control IE
- Subject: Re: Stuck trying to use creatorid to control IE
- From: Andy Wylie <email@hidden>
- Date: Wed, 11 Dec 2002 22:09:14 +1300
on Wed, 11 Dec 2002 00:33:05 -0500 Gary Lists wrote:
>
About the Creator ID stuff...
>
I use the following method of launching an app by creator ID and then
>
referring to that app. I have used this since late-8, but have not
>
specifically tested it "on all OS 8 versions" as I think you said you
>
wanted.
>
>
set creaType to "R*ch"
>
-- or the creator code for whatever application you want (MSIE)
>
>
tell application "Finder" to open application file id creaType
>
>
tell application "Finder" to set appOfMine to ,
>
(the first process whose creator type is ,
>
(creaType as type class)) as <<class psn >>
>
-- note the final space after psn_
>
-- this may be different for different flavors of 8
>
-- check that out
>
>
-- just as a test, to show that it works
>
-- successfully "tells" our round-about named application
>
tell appOfMine
>
activate
>
make new window
>
end tell
snip
>
(I don't know from raw events, so...)
Only basic common commands will compile in the 'appOfMine' tell hence the
need to use raw codes or 'using terms from' as Paul explained.
The Smile tool for translating to raw codes is called 'copy translate'
available from the edit menu or popup at the bottom of a window once it has
been linked to an application using 'tell' also in the edit menu. Run 'copy
translate' on a text selection in a linked window, the raw code is now on
the clipboard ready for pasting into a non linked window.
_____________________________ Andy
_______________________________________________
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.