• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: (no subject)
      • From: Mr Tea <email@hidden>
References: 
 >(no subject) (From: email@hidden (Dan))

  • Prev by Date: Delay
  • Next by Date: RE: Delay
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread