• 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: Andy Wylie <email@hidden>
  • Date: Mon, 02 Sep 2002 22:53:57 +1200

how about...

set originalJobText to "jobname_001.tif
jobname_002.tif
jobname_003.tif
jobname_004.tif
jobname_005.tif"'s paragraphs

set colorText to "001_Cyan
002_Magenta
003_Yellow
004_Black
005_Pantone072"'s paragraphs

set AppleScript's text item delimiters to ("_")
set x to (colorText as string)'s text items
set AppleScript's text item delimiters to ("")
repeat with n from 1 to count x by 2
set AppleScript's text item delimiters to ("$$$")
set xx to (f as string)
set AppleScript's text item delimiters to (x's item n)
set xxx to xx's text items
set AppleScript's text item delimiters to (x's item (n + 1))
set xxxx to (xxx as string)
set AppleScript's text item delimiters to ("$$$")
set f to xxxx's text items
end repeat
set AppleScript's text item delimiters to return
set f to f as string
set AppleScript's text item delimiters to ""
f

_____________________________ Andy
_______________________________________________
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.

  • Prev by Date: Re: Naming Files from List Ref
  • Next by Date: Re: Naming Files from List Ref
  • Previous by thread: Re: Naming Files from List Ref
  • Next by thread: Re: Naming Files from List Ref
  • Index(es):
    • Date
    • Thread