• 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: AS for InDesign - find artwork set to overprint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS for InDesign - find artwork set to overprint


  • Subject: Re: AS for InDesign - find artwork set to overprint
  • From: Thomas Fischer <email@hidden>
  • Date: Tue, 17 Nov 2009 17:44:21 +0100

Rose,

Am 17.11.2009 um 15:57 schrieb Rosemary Cantrell:

> Since I have so many files to do this to, is it possible to batch it
> somehow?  Or add to the script to do multiple documents?  Thanks for
> your help.  I really appreciate the guidance.

you can compile your script into an application (i.e. save as application using AppleScript-Editor).
If you have an "on"-handler then you can drag files (or folders) to that application and they will be processed.

This might start out something like this:

on open (theFolders)
	set theFolders to {} & theFolders -- make sure it is a list
	set theFolder to item 1 of theFolders
	display dialog "Convert all files in" & return & POSIX path of theFolder & return & " using my Script?"
	set myRef to alias theFolder
	set theFiles to list files myRef of extension "tif" -- this uses Satimage OSAX to list all files recursively
	repeat with theItem in theFiles
		-- do your thing, refer to your subroutine
	end repeat
end open


> Also can you tell me what the line -- set AppleScript's text item
> delimiters to {":"} -- means? I followed pretty much what was being
> done until there.

	set AppleScript's text item delimiters to {":"}
	set linkName to the last text item of linkPath

AppleScript can take strings apart and uses  text item delimiters (actually a list with one element ":") to do so. This will make a list out of a string, where the individual items are defined by the text item delimiters. Since internally AppleScript uses the standard classic Mac conventions for paths (like "Macintosh HD:Users:Thomas:Desktop:Snow Leopard.txt") the last item will be the name of the file, if the text item delimiter is a colon.

Hope this helps
Thomas _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >AS for InDesign - find artwork set to overprint (From: Rosemary Cantrell <email@hidden>)
 >Re: AS for InDesign - find artwork set to overprint (From: "Stockly, Ed" <email@hidden>)
 >Re: AS for InDesign - find artwork set to overprint (From: Rosemary Cantrell <email@hidden>)

  • Prev by Date: Re: AS for InDesign - find artwork set to overprint
  • Next by Date: Re: Quark error
  • Previous by thread: Re: AS for InDesign - find artwork set to overprint
  • Next by thread: Webpage cycling...
  • Index(es):
    • Date
    • Thread