Thread View: adobe.scripting
2 messages
2 total messages
Started by Jim_Daggett
Thu, 26 Aug 2004 12:29
Script to update legacy text
Author: Jim_Daggett
Date: Thu, 26 Aug 2004 12:29
Date: Thu, 26 Aug 2004 12:29
21 lines
1606 bytes
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
Re: Script to update legacy text
Author: Shane_Stanley
Date: Fri, 27 Aug 2004 02:45
Date: Fri, 27 Aug 2004 02:45
26 lines
1514 bytes
1514 bytes
In article <3bb5a51b.-1@webx.la2eafNXanI>, Jim_Daggett@adobeforums.com
wrote:
> 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.
There's another parameter to the open command, "dialogs", that defaults
to true. Set it to false:
open theFile with options {update legacy text:true} without dialogs
--
Shane Stanley
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads