• 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: [gcmac] Scripting problem with GraphicConverter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmac] Scripting problem with GraphicConverter


  • Subject: Re: [gcmac] Scripting problem with GraphicConverter
  • From: Robert Poland <email@hidden>
  • Date: Wed, 08 Jun 2011 14:59:44 -0600


On Jun 8, 2011, at 12:15 PM, Thorsten Lemke wrote:

Hello Robert,

I rechecked with interface builder. The window title is set to "Tools".

Thorsten

Von: Robert Poland <email@hidden>
Antworten an: <email@hidden>
Datum: Wed, 8 Jun 2011 07:27:23 -0600
An: AppleScript Users <email@hidden>
Cc: GcMac <email@hidden>
Betreff: [gcmac] Scripting problem with GraphicConverter

Hi,

I have this script that opens select GraphicConverter 7.X tool windows,
positions them and sets their size.

This script is called from the Scripts window of GraphicConverter.

If this script is run from Smile or ApplescriptEditor it works fine.

But when called from GraphicConverter it gets an error, "System Events got an
error: Can’t set window "Tools" of process "GraphicConverter" to {2343, 24}.".

I have tried calling a script that then runs the final script (an app), that
works better but still errors.

A similar script has worked for years with GraphicConverter 6.X.

Any ideas would be appreciated?

Here's a stripped down version of the script.

(* windowviews - 6/8/2011 -    *)

tell application "GraphicConverter7"
activate
tell window 1 -- main window
hide tools -- need GC 4.4.1b or later
set {leftSide, topSide, rightSide, bottomSide} to bounds


tell application "System Events"
keystroke "k" using command down
delay 1
-- Position Toolbox
tell process "GraphicConverter" to tell window "Tools"
set position to {2345, 24} -- {(rightLimit - TBWidth), topmargin}
end tell
end tell
end tell
end tell

--> Can’t set window "Tools" of process "GraphicConverter" to {2345, 24}.
--> System Events got an error: Can’t set window "Tools" of process "GraphicConverter" to {2345, 24}.


Robert Poland - Fort Collins, CO



 _______________________________________________
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

  • Prev by Date: Scripting problem with GraphicConverter
  • Next by Date: Re: [gcmac] Scripting problem with GraphicConverter
  • Previous by thread: Re: Scripting problem with GraphicConverter
  • Next by thread: Re: [gcmac] Scripting problem with GraphicConverter
  • Index(es):
    • Date
    • Thread