Re: How to open application (Preview) at a specific size and location on the screen
Re: How to open application (Preview) at a specific size and location on the screen
- Subject: Re: How to open application (Preview) at a specific size and location on the screen
- From: "Gary (Lists)" <email@hidden>
- Date: Tue, 18 Mar 2008 18:52:12 -0400
- Thread-topic: How to open application (Preview) at a specific size and location on the screen
"Thomas von Eyben" wrote:
> After having "enabled" Preview to be "AppleScriptable" I am now trying to
> figure out how to open the application and having the opened window resized
> and placed to my specifications.
Here's an example that makes the window about 1/2 its size (human math, not
AS rounding), keeping the same top-left coordinate.
tell application "Preview" to set w_ to window 1
-- window id 15904 of application "Preview"
tell w_ to set bnds_ to its bounds
-- {0, 22, 1007, 760}
tell w_ to set its bounds to {0, 22, 503, 380}
--
In your usage, which I get (making Preview your FM preview app...that's a
cool idea), you might want to create a window at the beginning and then keep
re-using it. You can either miniaturize the window, or even move it
completely off-screen by some extraordinary bounds.
This way, you can keep targeting your variable (see w_ above) throughout
your FM interface.
> Any hints for better image handling in FMP is also appreciated ;-)
No. FM is a database. It's great for storing images (well, references to
them...it kind of sucks at storing images...which is probably a good thing,
because the Finder is way better.)
I think using Preview is a perfectly acceptable way to display images from
anywhere.
--
Gary
_______________________________________________
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