Re: Another script to analyize, please
Re: Another script to analyize, please
- Subject: Re: Another script to analyize, please
- From: Shane Stanley <email@hidden>
- Date: Fri, 5 Dec 2003 09:00:40 +1100
On Dec 5, 2003, at 2:53 AM, Michelle Steiner wrote:
set docpath to choose file name
set thedoc to open for access docpath with write permission
close access thedoc
tell application "Finder"
set file type of file docpath to "GIFf"
set the file creator of file docpath to "GKON"
end tell
If I leave out "file" in setting the file type or file creator, I get
a stack overflow, but with the word file there, the log shows
set file type of file (file "Dora:Users:michelle:Desktop:untitled")
to "GIFf"
"GIFf"
set file creator of file (file
"Dora:Users:michelle:Desktop:untitled") to "GKON"
It seems to me that "file" is redundant.
I notice that 'choose file name' returns a furl rather than a file spec
-- did this change recently? Hard to tell because they both appear the
same in editors.
And 'file creator' should be 'creator type'.
--
Shane Stanley <email@hidden>
_______________________________________________
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.