Script to remove creator code
Script to remove creator code
- Subject: Script to remove creator code
- From: Robert Nordvik <email@hidden>
- Date: Tue, 22 Jun 2004 06:10:03 -0700
Sorry if this is a dumb (basic) question, however I am fairly new to
AppleScript. I need to write a script, ultimately to be applied as a
folder action, that removes the creator code from any files dropped
into the folder.
In my attempts at getting a working script (not necessarily even a
folder action yet,) I have come up with this non-working script.
set fileSelection to selection of application "Finder"
repeat with fileName in fileSelection
set fileName to fileName as alias
tell application "Finder"
set creator type of fileName to "" as text
end tell
end repeat
Upon running, I get the following message: "Finder got an error: Can't
make some data into the expected type."
Can someone help me make a working script to remove the creator code?
Then, hopefully I will be able to apply it is a folder action.
Thank you in advance!
-Rob
_______________________________________________
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.