Re: Folder action to change file type
Re: Folder action to change file type
- Subject: Re: Folder action to change file type
- From: Doug McNutt <email@hidden>
- Date: Fri, 16 Oct 2009 15:05:41 -0600
It's not a folder action but it works with dropped files when saved as an application.
on open (argList)
repeat with theAlias in argList
set thePath to quoted form of POSIX path of theAlias
-- display dialog thePath
set creatorcode to "'R*ch'"
-- display dialog creatorcode
set command to "/Users/doug/bin/SetFile -t TEXT -c " & creatorcode & space & thePath
-- display dialog command
do shell script command
end repeat
end open
The SetFile tool, case sensitive in Panther, is part of the developer tools but you can use it without the whole shebang by just placing a copy somewhere.
SetFile is actually an MPW, Macintosh Programmer's Workshop, tool which was ported to UNIX. On OS 9 I use it regularly in MPW. It would be easy as an MPW script to work through all of the files in a folder and MPW is now free from Apple - somewhere on Apple's site.
--
--> So are we going to celebrate the start of a new decade at the end of this year? Or do the tens start at in January 2011? <--
_______________________________________________
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