🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting
Article #15

Script to update legacy text

#15
From: Jim_Daggett
Date: Thu, 26 Aug 2004 12:29
21 lines
1606 bytes
I am trying to use a variation of this script from the "Adobe Illustrator CS Scripting Guide" in a longer script.

tell me
	activate
	set theFile to choose file with prompt "Choose file with Legacy Text:"
end tell
tell application "Illustrator CS"
	activate
	open theFile with options {update legacy text:true}
end tell

My impression is after choosing the file with legacy text, the file should open with no further user interaction. Instead, after choosing the file from the prompt, it brings up the open dialog box where I again have to choose the file and then brings up the update legacy text dialog where I have to choose "Update".

If I set user interaction to never, it doesn't bring up any dialogs, but it doesn't update legacy text and brings up the warning that I haven't updated.

I also tried use the force command to no avail, but I'm not sure I was scripting it correctly.

Any help will be greatly appreciated.

Thanks
Jim Daggett
Technical Details
Message-ID: <3bb5a51b.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: 109719,db825a435a6f78cf,start
X-Google-Attributes: gid109719,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jim_Daggett@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting
Subject: Script to update legacy text
Message-ID: <3bb5a51b.-1@webx.la2eafNXanI>
Date: Thu, 26 Aug 2004 05:29:46 -0700
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit