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: Emmanuel <email@hidden>
- Date: Wed, 11 Dec 2002 19:53:42 +0100
At 11:58 AM -0500 11/12/02, email@hidden wrote:
set creaType to "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 >>
tell application appOfMine
set theSource to <<event MSIEORC>>
display dialog "source = " & theSource
end tell
When in the script editor, I've got my << and >>'s replaced with actual
chevron characters using the option-\ keys. However, when I try to compile,
Script Editor seems to get hung up on these <<class psn >> and <<event
MSIEORC>> calls.
1. You don't need that coercion to <<class psn >>. Use just its name
(name of first process blah blah), or its path (application file id
creaType).
2. Your event code "MSIEORC" should be 2 x 4 = 8 characters. For some
reason here I get only 7. If such is your script, then the "expected
expression" is normal.
Emmanuel
_______________________________________________
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.