• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scripting for Adobe Illustrator error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  1. tell application "System Events"
  2. tell process "Adobe Illustrator"
  3. --beep
  4. set frontmost to true
  5. my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
  6. set Sizes1 to size of every window
  7. my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
  8. set Sizes2 to size of every window
  9. --beep
  10. if length of Sizes1 is not length of Sizes2 then
  11. if length of Sizes1 is greater than length of Sizes2 then
  12. set TheSize to item 1 of my RemoveComonList(Sizes1, Sizes2)
  13. else
  14. set TheSize to item 1 of my RemoveComonList(Sizes2, Sizes1)
  15. end if
  16. --beep
  17. set TOOLS to every window whose size is TheSize
  18. if TOOLS is {} then
  19. my do_submenu("Adobe Illustrator", "Window", "Tools", "Default")
  20. set TOOLS to every window whose size is TheSize
  21. end if
  22. --beep
  23. tell item 1 of TOOLS
  24. set WindowPosition to position #WindowPosition is defined ONLY if if length of Sizes1 is not length of Sizes2

  25. set item 1 of WindowPosition to (item 1 of WindowPosition) + (item 1 of clicker)
  26. set item 2 of WindowPosition to (item 2 of WindowPosition) + (item 2 of clicker)
  27. end tell
  28. end if
  29. end tell
  30. end tell
  31. --say "Click"

  32. my MouseClick(item 1 of WindowPosition, item 2 of WindowPosition, 1)
  33. delay 1
  34. 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

  • Follow-Ups:
    • Re: scripting for Adobe Illustrator error
      • From: Steve Mills <email@hidden>
References: 
 >Re: scripting for Adobe Illustrator error (From: Jake Rowlands <email@hidden>)
 >Re: scripting for Adobe Illustrator error (From: Steve Mills <email@hidden>)
 >Re: scripting for Adobe Illustrator error (From: Jake Rowlands <email@hidden>)

  • Prev by Date: Re: scripting for Adobe Illustrator error
  • Next by Date: Re: scripting for Adobe Illustrator error
  • Previous by thread: Re: scripting for Adobe Illustrator error
  • Next by thread: Re: scripting for Adobe Illustrator error
  • Index(es):
    • Date
    • Thread