This content has been marked as final.
Show 6 replies
-
1. Re: Resize Canvas applescript using the relative tick?
pixxxel schubser Jun 20, 2013 10:29 AM (in response to Mattmcquiff)Sorry,
only in Javascript (ala Michael L Hale)
activeDocument.resizeCanvas (undefined,UnitValue((activeDocument.height.as('px')-1),"px"), AnchorPosition.TOPCENTER);Perhaps you can translate this by yourself.
-
2. Re: Resize Canvas applescript using the relative tick?
Michael L Hale Jun 20, 2013 10:50 AM (in response to pixxxel schubser)As I understand it, AS has a command to execute javascript so you shouldn't need to translate unless you want pure AS. Look under 'do javascript' in the Photoshop AppleScript Reference.
-
3. Re: Resize Canvas applescript using the relative tick?
Muppet Mark Jun 20, 2013 11:01 AM (in response to Michael L Hale)tell application "Adobe Photoshop CS5"
tell document 1
resize canvas height (height - 1) anchor position top center
end tell
end tell
-
4. Re: Resize Canvas applescript using the relative tick?
pixxxel schubser Jun 20, 2013 11:07 AM (in response to Muppet Mark)Hello @Muppet Mark,
is your applescript regardless of the Ruler Units?
-
5. Re: Resize Canvas applescript using the relative tick?
Mattmcquiff Jun 21, 2013 5:45 AM (in response to pixxxel schubser)I specify the units as pixel
-
6. Re: Resize Canvas applescript using the relative tick?
Muppet Mark Jun 21, 2013 5:57 AM (in response to pixxxel schubser)No it's not but I use pixels always in PS… I can do the same as ESTK and change unit prefs or use as pixels…

