Re: Naming Files from List Ref
Re: Naming Files from List Ref
- Subject: Re: Naming Files from List Ref
- From: John Delacour <email@hidden>
- Date: Mon, 2 Sep 2002 16:10:39 +0100
At 11:53 pm -0700 1/9/02, Paul Berkowitz wrote:
On 9/1/02 11:02 PM, "rich allen" <email@hidden> wrote:
one possible solution
over 100 lines.
another: (It has the advantage that it will wok with any "job_name" without
having to revise the script)
31 lines ! :-)
-----
set ls1 to paragraphs of "jobname_001.tif
jobname_002.tif
jobname_003.tif
jobname_004.tif
jobname_005.tif"
set clrs to paragraphs of "_Cyan.tif
_Magenta.tif
_Yellow.tif
_Black.tif
_Pantone072.tif"
set {ls2, AppleScript's text item delimiters} to {{}, {"_"}}
repeat with f in ls1
set end of ls2 to f's text item 1 & item (character -5 of i) of clrs
end repeat
set AppleScript's text item delimiters to {return}
set ls2 to ls2 as string
set AppleScript's text item delimiters to {""}
ls2
-- JD
_______________________________________________
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.