macbook:Desktop steve$ mdls -name kMDItemContentType foo
kMDItemContentType = "com.apple.traditional-mac-plain-text"
macbook:Desktop steve$ mdls -name kMDItemContentType foo.txt
kMDItemContentType = "public.plain-text"
They're both plain-text and TextEdit opens plain-text files, regardless of which App created the file to begin with.
So if you're not running Snow Leopard the answer is "Expected Behaviour". If you're running Snow Leopard - erm, don't know. Works properly here. :-S
Steve
On 24 Jan 2010, at 17:33, Michelle Steiner wrote:
This script creates an AppleScript Editor text file (The icon shows the script icon with "TEXT" below it, and double-clicking it opens it in AppleScript Editor.)
<foo>
set bar to path to desktop as text
set foo to (open for access bar & "foo")
close access foo
This script creates a TextEdit text file:
set bar to path to desktop as text
set foo to (open for access bar & "foo.txt")
close access foo
-- Michelle
--
If you don't hit any bumps in the road, you're not moving.
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives:
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden