🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.illustrator.macintosh
Article #383

Re: Can't make dot to do work

#383
From: IanMcPherson
Date: Thu, 26 Mar 2009 21:43
28 lines
1506 bytes
Hi,

I have written a bit of applescript which will take every point on the page, and create a bit of numbered text at the same position.

tell application "Adobe Illustrator"
	tell current document
		set allDots to every page item
		set y to 1
		repeat with thisDot in allDots
			set myPos to position of thisDot
			set newTXT to make new text frame
			set contents of newTXT to (y as string)
			set size of every character of newTXT to 6
			set position of newTXT to myPos
			set y to y + 1
		end repeat
	end tell
end tell

It seemed to work ok for me on a file with 120 points. 1200 might take a bit longer. As Jean says, try it on something non-critical first!
- Ensure only the line that has been converted to points (as described above) is in the file
- Make a new layer so that all the numbers go on the new layer
- Run the applescript
- Experiment with the font sizes

Hope that helps

Ian
Technical Details
Message-ID: <59b86b03.9@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b86b03.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1046a6,b19326df5f8d870e
X-Google-Attributes: gid1046a6,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: IanMcPherson@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.illustrator.macintosh
Subject: Re: Can't make dot to do work
Message-ID: <59b86b03.9@webcrossing.la2eafNXanI>
Date: Thu, 26 Mar 2009 14:43:02 -0700
References: <59b86b03.-1@webcrossing.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit