Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SCRIPTING PAGE SETUP (ORIENTATION)

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  Cop-y file to preference folder  
Author Message
abpp

External


Since: Aug 07, 2008
Posts: 1



(Msg. 1) Posted: Thu Aug 07, 2008 4:10 pm
Post subject: SCRIPTING PAGE SETUP (ORIENTATION)
Archived from groups: alt>comp>lang>applescript (more info?)

Is there a way to use Applescript to change the page setup/orientation
(portrait or landscape) of a document in an application that doesn't
have this built-in??

 >> Stay informed about: SCRIPTING PAGE SETUP (ORIENTATION) 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 2) Posted: Thu Aug 07, 2008 10:29 pm
Post subject: Re: SCRIPTING PAGE SETUP (ORIENTATION) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
abpp wrote:

> Is there a way to use Applescript to change the page setup/orientation
> (portrait or landscape) of a document in an application that doesn't
> have this built-in??

I think to do something like that, you'll need a macro utility like
Quickeys:

<http://www.cesoft.com/products/quickeys.html>

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR

 >> Stay informed about: SCRIPTING PAGE SETUP (ORIENTATION) 
Back to top
Login to vote
Scott

External


Since: Oct 04, 2008
Posts: 1



(Msg. 3) Posted: Sat Oct 04, 2008 3:24 pm
Post subject: Re: SCRIPTING PAGE SETUP (ORIENTATION) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Here's an example from a Photoshop file setup script I made:

--------------------------------------------------
-- page setup
--------------------------------------------------
tell application "System Events"

tell process "Adobe Photoshop CS3"

set frontmost to true

keystroke "p" using {command down, shift down} -- open Page Setup
dialog window

delay 1

keystroke tab
keystroke tab

repeat with idx from 1 to 16
key code 125 -- arrow down -- scroll down through the configured setups
end repeat

keystroke tab

keystroke 123 -- arrow left (to make sure landscape orientation is selected)

keystroke return
keystroke return

end tell

end tell
--------------------------------------------------



On 2008-08-07 19:10:10 -0400, abpp said:

> Is there a way to use Applescript to change the page setup/orientation
> (portrait or landscape) of a document in an application that doesn't
> have this built-in??
 >> Stay informed about: SCRIPTING PAGE SETUP (ORIENTATION) 
Back to top
Login to vote
Jean-Marie Schwartz

External


Since: Jun 07, 2007
Posts: 14



(Msg. 4) Posted: Mon Oct 06, 2008 4:25 am
Post subject: Re: SCRIPTING PAGE SETUP (ORIENTATION) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Vous lisez mes messages et vous faites bien. Le 4/10/08 21:24, Scott a
écrit :

> keystroke 123 -- arrow left (to make sure landscape orientation is selected)

Didn't you mean "key code 123" ?

--
Jean-Marie

« ¡Oyé pana! ¿Qué pasa por la calle?
‹ ¡Nada, no pasa nada! »
(«Guayaquil City», Mano Negra)
 >> Stay informed about: SCRIPTING PAGE SETUP (ORIENTATION) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Control of Page Setup Dialog? - Hello, We're doing a point-of-sale application. We're using a Datamax Barcode label printer. Filemaker prints fine, but is constrained by the Page Setup's paper size limitation. We would like there to be a single "print" button that will adj...

Scripting RealPlayer 10 - Is it possible to instruct Real Player to open a specific URL? I've tried a few different things, and the best I can do is to get RealPlayer to start up. Can't get it to recognize the URL... tell application "RealPlayer" open..

Getting info from UI Scripting - How can I get information using UI scripting? For example, let's say I want to do one thing if speakers are plugged, another if they're not. This info is apparently available to the UI Scripting inspector, because I can get a panel that shows: ...

UI Scripting Beta -

UI Scripting: why this won't work - I found this script on Apple 's site using UI scripting to import pictures of a folder into iPhoto: this_item is the choosen folder. // -- convert the file reference to UNIX style set this_path to the POSIX path of this_item -- bring the target..
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]