I have a solution to creating a file and setting the creator in AS
I have a solution to creating a file and setting the creator in AS
- Subject: I have a solution to creating a file and setting the creator in AS
- From: Jerry LeVan <email@hidden>
- Date: Sun, 22 Sep 2002 21:28:02 -0400
Good Evening,
Yesterday I posted a message about the failure of an old script that created
a file and then tried to set the creator, I was getting a stack overflow in
the finder tell block.
Could somebody tell me why this version works and the older one (see the
commented lines in the tell block ) does not?
Thanks,
Jerry
set reportFile to choose file name with prompt "Select Report File Name"
set FD to open for access reportFile with write permission
write "Hello World
" to FD
close access reportFile
log reportFile
tell application "Finder"
-- This one fails
--set creator type of reportFile to "R*ch"
-- but this works...
set creator type of alias (reportFile as string) to "R*ch"
end tell
_______________________________________________
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.