Re: Launching TextEdit with a TEXT document
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.