• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stuck trying to use creatorid to control IE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stuck trying to use creatorid to control IE


  • Subject: Re: Stuck trying to use creatorid to control IE
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 11 Dec 2002 12:11:33 -0800

On 12/11/02 10:53 AM, "Emmanuel" <email@hidden> wrote:

> 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).

Right.

>
> 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.

He left out a character I gave him: "MSIESORC" = 8 characters. Usual source
of AppleScript errors: typos.


--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: Stuck trying to use creatorid to control IE (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Variables inside handlers
  • Next by Date: WebDAV tools
  • Previous by thread: Re: Stuck trying to use creatorid to control IE
  • Next by thread: Variables inside handlers
  • Index(es):
    • Date
    • Thread