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

  • Follow-Ups:
    • Re: Stuck trying to use creatorid to control IE
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Stuck trying to use creatorid to control IE (From: email@hidden)

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