• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 17 Feb 2004 15:32:26 -0800

On 2/17/04 2:39 PM, "Walter Ian Kaye" <email@hidden> wrote:

>> Typo there, but this works ("ttxt")
>
> No, actually it was not a typo. 'ttxt' is SimpleText, 'text' is TextEdit.

Try both. "TEXT" is a file type. "ttxt" is a creator type: of SimpleText in
OS 7-9, of TextEdit in OS 10.1.x upwards. (I forget which subversion of OS
10.1 it happened: before that creator type was "".)


tell application "Finder"
name of application file id "text"
end tell
--> Finder got an error: An error of type -10814 has occurred.


tell application "Finder"
name of application file id "ttxt"
end tell
--> "TextEdit.app"

For some reason, the Finder won't actually get the application file id of
any app or app file any longer: if it isn't followed by a 4-character string
code 'id' errors. Bah.

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

  • Follow-Ups:
    • Re: Launching TextEdit with a TEXT document
      • From: Walter Ian Kaye <email@hidden>
References: 
 >Re: Launching TextEdit with a TEXT document (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: OT: Entourage send Meeting invite Outlook on PC
  • Next by Date: Re: Another address book question
  • Previous by thread: Re: Launching TextEdit with a TEXT document
  • Next by thread: Re: Launching TextEdit with a TEXT document
  • Index(es):
    • Date
    • Thread