Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Shane Stanley <email@hidden>
- Date: Tue, 23 Jan 2001 08:44:28 +1100
On 22/1/01 11:19 PM +1000, Dan, email@hidden, wrote:
>
A single script that will interrogate the file, find out it's creator and
>
from a set of variables I have inputted in, eg if creator = ClarisWorks,
>
then add .cwk, if creator = MS Word, then add .doc, etc, etc. Add the
>
appropriate file name suffix to the file.
Something like this:
on open fileList
repeat with aFile in fileList
tell application "Finder"
set myType to file type of aFile
if myType is "W8BN" then
set name of aFile to (name of aFile & ".doc")
else if myType is "xyza" then
set name of aFile to (name of aFile & ".xyz")
...
end if
end tell
end repeat
end open
This assumes all your existing filenames are short enough.
--
Shane Stanley, email@hidden