Folder action to change file type
Folder action to change file type
- Subject: Folder action to change file type
- From: Bert Knabe <email@hidden>
- Date: Fri, 16 Oct 2009 10:56:53 -0500
- Thread-topic: Folder action to change file type
We have a system that still runs on OS 9 that loads EPS files into a
database. The problem is that the EPS files are run from a Windows box to a
server, then to the OS 9 Mac, stripping the metadata in the process. I need
a folder action that will put the file type data (EPSF) back into the files.
The folder action can be on an OS X computer, although OS 9 compatibility
would be nice. It's been a long time (decade) since I played with
Applescript, but I think a folder action is exactly what I need. I found a
script that looked about right and modified it, but it doesn't work. Any
help would be appreciated. Here is what I have:
on adding folder items to this_folder after receiving added_items
tell application "Finder"
set fold_name to the name of this_folder
try
repeat with i from 1 to number of items in added_items
set new_item to item i of added_items
set the item_path to the quoted form of the POSIX path of
new_item
set file type of item i of added_items to "EPSF"
set creator of item i of added_items to "crtr"
end repeat
end try
end tell
end adding folder items to
Thanks,
Bert Knabe
Technician
Lubbock Avalanche-Journal
806-766-2158
_______________________________________________
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