• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple 'screensaver' launcher
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple 'screensaver' launcher


  • Subject: Re: Simple 'screensaver' launcher
  • From: John W Baxter <email@hidden>
  • Date: Wed, 20 Dec 2000 11:10:59 -0800

At 12:19 -0500 12/20/00, Carl West wrote:
>Phi Sanders wrote:
>>
>> The blackwatch screen saver includes some source code,
>> apparently for a minimal screen saver...
>
>It's C code for dealing with "two Gestalt selectors, 'SAVR' (screen
>saver attributes) and 'SAVC' (screen saver control)."
>
>I've heard of 'Gestalt' and was guessing that's what I'd have to deal
>with to make an idle-for-x-minutes application launcher. Does AS have
>access to Gestalt?

tell application "Finder"
--do thing(s) with the computer command---see dictionary
end tell

It takes a little while to learn to manipulate Gestalt (the same is true
for C programmers).

Jon's Commands also has an interface:
machine environment: Information about the running machine. (defined in:
Jon's Commands)
machine environment [string] -- An optional custom Gestalt code.
[check bit integer] -- The bit to check (from 0 to 31 with 0 as
lowest bit).
Result: environment info object -- The environment record.

Note: another case in which it is not possible to tell the truth in an
AppleScript dictionary: The result is only as stated if you issue the
machine environment command with no parameters.

Mac Trivia note: The Gestalt trap appeared in the ROMs in the Mac IIci
(and possibly Mac IIfx...I never had one of those) before it appeared in
the System software. In arrived in System sometime during System 6.
--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Simple 'screensaver' launcher (From: Carl West <email@hidden>)
 >Re: Simple 'screensaver' launcher (From: Phi Sanders <email@hidden>)
 >Re: Simple 'screensaver' launcher (From: Carl West <email@hidden>)

  • Prev by Date: Re: Simple 'screensaver' launcher
  • Next by Date: "11/31/99" to date
  • Previous by thread: Re: Akua Sweets (was Re: Simple 'screensaver' launcher)
  • Next by thread: Re: Simple 'screensaver' launcher
  • Index(es):
    • Date
    • Thread