• 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: Can't tell an application to open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't tell an application to open


  • Subject: Re: Can't tell an application to open
  • From: Alex Zavatone <email@hidden>
  • Date: Sun, 20 Feb 2011 11:48:15 -0600

try this:

tell application "Finder" to open theFile with application "TextWrangler"


On Feb 20, 2011, at 11:24 AM, Dave wrote:

The following lines in a script handler:

tell application "TextWrangler"
set textDocument to open theFile


-- Dave

I've tried all kinds of variations, including using the chevron notation for "open" («event aevtodoc» theFile) and having the tell on the same line as the open, but they all bomb the same way. AppleScript is always giving the open command to the script instead of TextWrangler. Other commands (activate etc.) to TextWrangler are work normally.

-- Dave
Do not post admin requests to the list. They will be ignored. applescriptobjc-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Can't tell an application to open
      • From: Dave <email@hidden>
References: 
 >Can't tell an application to open (From: Dave <email@hidden>)

  • Prev by Date: Can't tell an application to open
  • Next by Date: Re: Can't tell an application to open
  • Previous by thread: Can't tell an application to open
  • Next by thread: Re: Can't tell an application to open
  • Index(es):
    • Date
    • Thread