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: email@hidden
- Date: Wed, 11 Dec 2002 11:58:16 EST
In a message dated 12/10/02 11:11:37 PM, email@hidden writes:
>
The Smile Help also explains that application-specific keywords do not
>
compile outside their tell block. In OS 8.5, you have to use the raw code
>
equivalent. I believe that there's a very easy way to get that now in Smile
>
- I haven't used Smile for a while. It used to be (and may still be in the
>
Classic Smile you're using) that you did a "Copy Transfer" from a Smile
>
window targeted to your app in question (IE) and pasted into an untargeted
>
window. The Smile Help will tell you how to do it.
>
>
In any case, the raw code for IE's GetSource is <<event MSIESORC>> , You
>
don't use actual << and >> characters but instead the chevron characters
>
made by option-\ and shift-option-\ on US keyboards. (This mailing list
>
mangles these symbols so I can't type them directly. Isn't that stupid?)
>
Believe me, I am _extremely_ appreciative of this list and all the great
advice I've been receiving on this topic of raw event codes and creatorID's.
I think I must be having a simple syntax issue. After combining bits of
wisdom from all the advice I've gotten, I've now got this script:
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. I get a "Expected Expression but found <<" error before
the event MSIEORC. Do I need to actually be in Mac OS 8.6 in order to
compile this script? Since I'd be compiling for OS 8.1, 8.5, and 8.6, I
can't use the "using terms from", if I understand all the posts correctly.
From reading the posts, it also appears that I cannot use the "GetSource"
command directly, as I cannot use a non-standard Applescript command inside
the tell block, so I have to use <<event MSIEORC>>. Do I have all my facts
straight?
_______________________________________________
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.