Re: OS X Preview -- wrong size
Re: OS X Preview -- wrong size
- Subject: Re: OS X Preview -- wrong size
- From: Martin Orpen <email@hidden>
- Date: Fri, 25 Feb 2005 13:00:50 +0000
on 24/2/05 2:48 pm, Graeme Gill at email@hidden wrote:
> The newer Quartz services API doesn't even have a method of discovering
> the displays resolution, even though it has stuff like "RefreshRate"
> available.
If anybody's interested, us AppleScriptKiddies have been messing about with
using empty AppleScript Studio or Xcode apps (or any that you've created
yourself) to call obj-c methods:
tell application "Photoshirk"
set foo to call method "mainScreen" of class "NSScreen"
set bar to call method "frame" of foo
end tell
-->
{
0.0,
0.0,
1280.0,
854.0
}
Replace "Photoshirk" with any of your own apps or use this background app
(16k) created by one of the guys on the AppleScript-Users list:
<http://www.red-sweater.com/AppleScriptKit.zip>
Quite a useful *method* to extend the capabilities of AS :-)
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden