• 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: Launching TextEdit with a TEXT document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching TextEdit with a TEXT document


  • Subject: Re: Launching TextEdit with a TEXT document
  • From: Craig Hoyt <email@hidden>
  • Date: Mon, 16 Feb 2004 19:08:54 -0800

At 17:41:09 -0800 02/16/2004, Walter Ian Kaye
<email@hidden> wrote:

Well there's another way you could do it:

tell app "Finder" to open file filePath using application file id "text"

You did verify that 'filePath' contains the correct path to the file, yes?


TextEdit is an OSX app I wasn't aware that it had a creator type. I'll give
it a shot. Again I state I have no problem launching TexyEdit just opening
my document after it's launched. Yes I have verified that filePath is the
full file path and is correct.

And again Walter wrote:

Hey, wait a sec.

> filePath is a string containing the complete file path surrounded by quotes.

Surrounded by quotes???

Yes like this: "Macintosh HD:Desktop Folder:My Folder:My File". Maybe
surrounded by quotes was a bit cryptic, maybe I should have used some other
description but I'm not sure how to phrase that. The examples I saw used
<open file "full path names" so that's how I built the var. This same var
works for a slightly different script when my app is run in classic mode to
open SimpleText and it works perfectly.
_______________________________________________
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: Launching TextEdit with a TEXT document
      • From: Paul Berkowitz <email@hidden>
    • Re: Launching TextEdit with a TEXT document
      • From: Walter Ian Kaye <email@hidden>
    • Re: Launching TextEdit with a TEXT document
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Windows of hidden Applications
  • Next by Date: Shell: put sed script in Applescript
  • Previous by thread: Re: Launching TextEdit with a TEXT document
  • Next by thread: Re: Launching TextEdit with a TEXT document
  • Index(es):
    • Date
    • Thread