• 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
Adobe Illustrator Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adobe Illustrator Scripting


  • Subject: Adobe Illustrator Scripting
  • From: "Simon P. Grasser" <email@hidden>
  • Date: Fri, 17 Sep 2004 15:30:01 +0200

Hi


I am new to AppleScript and wanted to write a Folder Action script that
would let me convert all text items in an Illustrator document to outlines.

The Idea was that I could drop a document either .ai or .eps into a
Finder folder named "In". Illustrator would then automatically open the
dropped document, change all text to outlines, save the document in the
same format as the original and append "_text-ol" to its name. the new
document and the original would then be moved to a Finder folder named
"Processed"

dropping a hello.ai into "In" would result in two documents - hello.ai
and hello_text-ol.ai respectively - in the folder "Processed". However I
am already stuck with selecting all items in an Illustrator document. I
found no hints in the Illu Dictionary on how to do this.

This is what I have so far:

tell application "Illustrator CS"

 --something like this
	--set currentSelection to every item


	--	Make sure the selection is a page item,and not text in a text art item.
	--	If the selection is text, the class of the selection will be text,
rather than list.
	if class of currentSelection is list then

		-- Process each item in the selection, looking for text art items.
		repeat with targetItem in currentSelection
			if class of targetItem is text frame then
				convert to paths targetItem
			end if
		end repeat
	end if


	--save document in processed folder appending "text-ol" to its name
	--close document

end tell

-- move original doc to processed

Any help is greatly appreciated

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Adobe Illustrator Scripting
      • From: Simon Topliss <email@hidden>
    • Re: Adobe Illustrator Scripting
      • From: peter boardman <email@hidden>
    • Pointers requested for first-time InDesign scripter
      • From: Bill Planey <email@hidden>
  • Prev by Date: Re: Count lines in a textfile
  • Next by Date: System Event & TextEdit & Mac Os 10.2
  • Previous by thread: Re: Identifying "LN" type aliases
  • Next by thread: Pointers requested for first-time InDesign scripter
  • Index(es):
    • Date
    • Thread