Re: Sorting files, making folders
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.