Re: scripting for Adobe Illustrator error
Re: scripting for Adobe Illustrator error
- Subject: Re: scripting for Adobe Illustrator error
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 18 Oct 2016 19:09:37 +0200
Le 18 oct. 2016 à 18:36, Jake Rowlands < email@hidden> a écrit :
Posting the entire script. Error now is error "The variable WindowPosition is not defined." number -2753 from "WindowPosition" of line 71 -
- tell application "System Events"
- tell process "Adobe Illustrator"
- --beep
- set frontmost to true
- my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
- set Sizes1 to size of every window
- my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
- set Sizes2 to size of every window
- --beep
- if length of Sizes1 is not length of Sizes2 then
- if length of Sizes1 is greater than length of Sizes2 then
- set TheSize to item 1 of my RemoveComonList(Sizes1, Sizes2)
- else
- set TheSize to item 1 of my RemoveComonList(Sizes2, Sizes1)
- end if
- --beep
- set TOOLS to every window whose size is TheSize
- if TOOLS is {} then
- my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
- set TOOLS to every window whose size is TheSize
- end if
- --beep
- tell item 1 of TOOLS
- set WindowPosition to position #WindowPosition is defined ONLY if if length of Sizes1 is not length of Sizes2
- set item 1 of WindowPosition to (item 1 of WindowPosition) + (item 1 of clicker)
- set item 2 of WindowPosition to (item 2 of WindowPosition) + (item 2 of clicker)
- end tell
- end if
- end tell
- end tell
- --say "Click"
-
- my MouseClick(item 1 of WindowPosition, item 2 of WindowPosition, 1)
- delay 1
- set TheContent to contents of the selection
-
Finding what's wrong just required less than 30 seconds.
Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) mardi 18 octobre 2016 19:09:23
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden