Re: Launching TextEdit with a TEXT document
Re: Launching TextEdit with a TEXT document
- Subject: Re: Launching TextEdit with a TEXT document
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 17 Feb 2004 16:56:37 -0800
At 03:32p -0800 02/17/2004, Paul Berkowitz didst inscribe upon an
electronic papyrus:
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"
Oops. Hmm, I'm SURE I saw 'text' somewhere. Maybe it was in some
incorrect documentation. It stuck in my head. Yes, it was in some
Apple documentation.
I believed it. Mea culpa.
In any case, you could still do 'application file id "com.apple.textedit"'.
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.
Wha? Panther kill BIs?! Hmm, should we take that as a reaffirmation
that creator codes are better? ;->
-boo
_______________________________________________
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.