Change Margins Script
-
- Posts: 0
- Joined: Sun Jan 03, 2010 3:45 pm
Change Margins Script
Hi, Trying to run script (below) and gets error "GraphicConverter 9 got an error: Can't make {50, 50, 50, 50} into type window. “ tell application "GraphicConverter 9" activate tell window 1 # resize window + 50, all sides change margins {50, 50, 50, 50} end tell end tell -- GraphicConverter TIA, Robert Poland Fort Collins CO
-
- Posts: 0
- Joined: Fri Dec 30, 2016 12:00 pm
Re: Change Margins Script
Hi Robert,that was simple. The with was missing:tell application "GraphicConverter 9" activate tell window 1 # resize window + 50, all sides change margins with {50, 50, 50, 50} end tellend tell -- GraphicConverterThorsten Hi,Trying to run script (below) and gets error "GraphicConverter 9 got an error: Can't make {50, 50, 50, 50} into type window. “tell application "GraphicConverter 9"activatetell window 1 # resize window + 50, all sides change margins {50, 50, 50, 50}end tellend tell -- GraphicConverterTIA,Robert PolandFort Collins CO
-
- Posts: 0
- Joined: Sun Jan 03, 2010 3:45 pm
Re: Change Margins Script
Thanks Thorsten, On more question. The following errors if there are no margins. The Dictionary was no help here. tell application "System Events" tell window 1 # Remove margins, if any if margins exists then keystroke "E" using {command down, option down, shift down} delay 0.2 keystroke "Y" using {command down} end if end tell # window 1 end tell # System Events > On Nov 3, 2014, at 12:47:AM, Thorsten Lemke lemke@lemkesoft.de [gcmac] <gcmac@yahoogroups.com> wrote: > > Hi Robert, > > > that was simple. The with was missing: > > tell application "GraphicConverter 9" > activate > tell window 1 # resize window + 50, all sides > change margins with {50, 50, 50, 50} > end tell > end tell -- GraphicConverter > > > Thorsten >> >> Hi, >> >> Trying to run script (below) and gets error "GraphicConverter 9 got an error: Can't make {50, 50, 50, 50} into type window. “ >> >> tell application "GraphicConverter 9" >> activate >> tell window 1 # resize window + 50, all sides >> change margins {50, 50, 50, 50} >> end tell >> end tell -- GraphicConverter >> >> TIA, >> >> Robert Poland >> Fort Collins CO >> >> > > > Robert Poland Fort Collins CO
-
- Posts: 0
- Joined: Fri Dec 30, 2016 12:00 pm
Re: Change Margins Script
Dear Robert,I add now a “smart crop” applescript command. That makes more sense.A new BETA will be available in the evening or tomorrow.Thorsten Thanks Thorsten,On more question. The following errors if there are no margins. The Dictionary was no help here.tell application "System Events"tell window 1 # Remove margins, if any if margins exists thenkeystroke "E" using {command down, option down, shift down}delay 0.2keystroke "Y" using {command down} end ifend tell # window 1end tell # System Events> On Nov 3, 2014, at 12:47:AM, Thorsten Lemke lemke@lemkesoft.de [gcmac] <gcmac@yahoogroups.com> wrote:> > Hi Ro
-
- Posts: 0
- Joined: Fri Dec 30, 2016 12:00 pm
Re: Change Margins Script
Hi Robert,I added now the smart crop applescript command.Thorsten Thanks Thorsten,On more question. The following errors if there are no margins. The Dictionary was no help here.tell application "System Events"tell window 1 # Remove margins, if any if margins exists thenkeystroke "E" using {command down, option down, shift down}delay 0.2keystroke "Y" using {command down} end ifend tell # window 1end tell # System Events