Re: Naming Files from List Ref
Re: Naming Files from List Ref
- Subject: Re: Naming Files from List Ref
- From: Nigel Smith <email@hidden>
- Date: Mon, 02 Sep 2002 11:39:50 +0100
On 2/9/02 7:53 am, "Paul Berkowitz" <email@hidden> wrote:
Lots of other script stuff, including...
>
repeat with i from 1 to count (paragraphs of originalJobText) -- -1?
>
set jobLine to paragraph i of originalJobText
>
set AppleScript's text item delimiters to {"_"}
>
set jobName to text item 1 of jobLine
>
set theCode to text item 2 of jobLine
>
set AppleScript's text item delimiters to {".tif"}
>
set theCode to text item 1 of theCode
>
set theIndex to theCode as integer
>
set end of finalList to jobName & "_" & (item theIndex of colorList) &
>
".tif"
>
end repeat
Assuming you have generated two lists, one with the filenames, one with the
seperation names, would the above be any faster than
repeat with i from 1 to (count of colourList)
set item i of fileNameList to <<NO-BREAK>>
(words 1 thru -3 of item i of fileNameList <<NO-BREAK>>
& word -1 of item i of colourList & ".tif") as string
end repeat
Just wondering, because optimisation is never my strong point!
Nigel
_______________________________________________
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.