• 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: Steen Villumsen <email@hidden>
  • Date: Mon, 05 May 2003 08:01:36 +0200

Den 5/4/03 11:41 AM, skrev "Steen Villumsen" <email@hidden>:

> Den 5/1/03 9:41 AM, skrev "David Hood" <email@hidden>:
>
>> 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
>
> When I use the snippet and choose a file with the name "A12345-01" the
> result is "Page pg"... Shouldn9t the result be "Page 01" or am I missing
> something?

Got it working, hadn't noticed I had the "Hide extension"-option checked in
my OS X.

/Steen
_______________________________________________
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: David Hood <email@hidden>
References: 
 >Re: Sorting files, making folders (From: Steen Villumsen <email@hidden>)

  • Prev by Date: Re: application file id?
  • Next by Date: Re: I don't understand
  • Previous by thread: Re: Sorting files, making folders
  • Next by thread: Re: Sorting files, making folders
  • Index(es):
    • Date
    • Thread