Re: Can't set creator type
Re: Can't set creator type
- Subject: Re: Can't set creator type
- From: Michelle Steiner <email@hidden>
- Date: Mon, 23 Feb 2004 19:10:21 -0700
On Feb 23, 2004, at 6:39 PM, Mr Tea wrote:
Why does this not work?
This might explain it.
set fList to selection of application "Finder"
repeat with f in fList
set f to f as alias
tell application "Finder"
set theCode to creator type of f
activate
log (class of theCode)
--> (*string*)
display dialog "Creator" default answer theCode returning dRes
if the text returned of dRes is not "" then
set theCode to the text returned of dRes
log (class of theCode)
--> (*Unicode text*)
set creator type of f to (theCode as text)
end if
end tell
end repeat
--
You can not change the world without perforce changing yourself.
_______________________________________________
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.