• 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: Sorting files, making folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting files, making folders


  • Subject: Re: Sorting files, making folders
  • From: David Hood <email@hidden>
  • Date: Thu, 1 May 2003 19:41:27 +1200

On Thursday, May 1, 2003, at 06:58 PM, Steen Villumsen wrote:
Here's the deal, I have a lot (about 700) images with names like:

A12345-06
The last two digits in the filename refers to a pagenumber.

Now here's the tricky part (well, tricky for a newbie like myself). I wan't
my script to make a folder called "Page 01" and put all the files whose name
ends with 01 in there.


Well, as a start (and putting aside if there are .whatever suffixes and the effect they might have), here is a snippet for working out the folder to go to from a single file name end:

set anyOldFile to (choose file) as string
set destinationFolderName to "Page " & (characters -2 through -1 of anyOldFile as string)
return destinationFolderName

Regards,
David Hood
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sorting files, making folders
      • From: Steen Villumsen <email@hidden>
    • Re: Sorting files, making folders
      • From: Emmanuel <email@hidden>
References: 
 >Sorting files, making folders (From: Steen Villumsen <email@hidden>)

  • Prev by Date: Re: Language at a Glance
  • Next by Date: Re: Palm Desktop 4.1 (creating a memo)
  • Previous by thread: Sorting files, making folders
  • Next by thread: Re: Sorting files, making folders
  • Index(es):
    • Date
    • Thread