InDesign XiNet Picture Wrangler GUI Scripting
InDesign XiNet Picture Wrangler GUI Scripting
- Subject: InDesign XiNet Picture Wrangler GUI Scripting
- From: Alex Kaczun <email@hidden>
- Date: Thu, 16 Mar 2006 11:08:56 -0500
- Thread-topic: InDesign XiNet Picture Wrangler GUI Scripting
Title: InDesign XiNet Picture Wrangler GUI Scripting
XiNet Picture Wrangler is not a scriptable application.
We work in an OPI environment (working with FPO art until final PDF stage), using OSX 10.4.3, InDesign CS2 4.0.1, and XiNet WebNative and OPI software Picture Wrangler.
We have successfully scripted a watch folder which processes InDesign documents dropped into it which in turn Exports PDFs, single/or spread pages, in PDFx1a compliant format for the printers.
The only hitch is that we need to somehow automate the trigger for Picture Wrangler which updates the FPO images to -->Relink All Images To High.
I purchased “UI Browser.app” in order to view the menu item names for UI scripting as an extension of Applescripting.
When I use the following script (only part of overall script):
---Begin--
activate application "Adobe InDesign CS2"
tell application "System Events"
tell process "InDesign"
-- GUI Scripting statements:
click menu item "Relink All Images to High" of menu 1 of menu item "Picture Wrangler" of menu 1 of menu bar item "Plug-Ins" of menu bar 1
end tell
end tell
---End--
It returns (see below), but does not trigger the function:
menu item "Relink All Images to High" of menu "Picture Wrangler" of menu item "Picture Wrangler" of menu "Plug-Ins" of menu bar item "Plug-Ins" of menu bar 1 of application process "Adobe InDesign CS2" of application "System Events"
And, when I add the “Tell document 1 to click” the script as follows:
activate application "Adobe InDesign CS2"
tell application "System Events"
tell process "InDesign"
-- GUI Scripting statements:
tell document 1 to click menu item "Relink All Images to High" of menu 1 of menu item "Picture Wrangler" of menu 1 of menu bar item "Plug-Ins" of menu bar 1
end tell
end tell
It returns an error:
System Events got an error: Can't make menu item "Relink All Images to High" of menu 1 of menu item "Picture Wrangler" of menu 1 of menu bar item "Plug-Ins" of menu bar 1 of document 1 of process "InDesign" into type UI element.
Nothing I try seems to work.
Can anyone see the problem or offer a possible solution?
Many thanks in advance.
Alex Kaczun
--
Alex Kaczun . YES Solutions™ . Bookspan . Garden City . NY . 11530
516.490.5029 . email@hidden
_______________________________________________
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