• 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: Naming Files from List Ref
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Naming Files from List Ref


  • Subject: Re: Naming Files from List Ref
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 02 Sep 2002 16:03:35 -0400

At 4:15 PM +1200 9/2/02, Mathew Baker wrote:
Hi,

I have been lurking on the list for awhile now but have come across a problem which doesn't seem to have been answered in the archives.

This script takes care of any given order provided the colors are such that 1 is always cyan, 2 is always magenta, ...

set numeros to {"001", "002", "003", "004", "005"} -- it does nothing, here just for a reference
set cores to {"Cyan", "Magenta", "Yellow", "Black", "Pantone072"}

set nomes to paragraphs of "jobname_003.tif
jobname_004.tif
jobname_005.tif
jobname_002.tif
jobname_001.tif"
set ASTID to {AppleScript's text item delimiters, "_", "."}
set AppleScript's text item delimiters to item 2 of ASTID
set lista to {}
repeat with itens in nomes
set k to text items of itens
set AppleScript's text item delimiters to item 3 of ASTID
set kn to text item 1 of item 2 of k as number
set kf to item kn of cores
set item 2 of k to kf & "." & text item 2 of item 2 of k as string
set AppleScript's text item delimiters to item 2 of ASTID
set end of lista to k & return as string
end repeat
set AppleScript's text item delimiters to item 1 of ASTID
lista as string



Any help would be greatly appreciated as this will enabled us to avoid a costly RIP upgrade ($13,000).

Thanks in advance
Mathew

You can send a check of $6,000 to my address. This is great savings on your part...


Regards

--
Deivy Petrescu
http://www.dicas.com
_______________________________________________
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.

References: 
 >Naming Files from List Ref (From: Mathew Baker <email@hidden>)

  • Prev by Date: Re: Spring-loaded folder and folder action script
  • Next by Date: HTML parsing
  • Previous by thread: Re: Naming Files from List Ref
  • Next by thread: Re: Naming Files from List Ref
  • Index(es):
    • Date
    • Thread