Groups | Search | Server Info | Login | Register


Groups > alt.comp.lang.applescript > #13

Re: [Applescript/shell script] how could I change the images folder of the screen saver ?

From Jolly Roger <jollyroger@pobox.com>
Newsgroups alt.comp.lang.applescript
Subject Re: [Applescript/shell script] how could I change the images folder of the screen saver ?
Date 2015-10-07 16:20 +0000
Message-ID <d7kv1lFm6t5U1@mid.individual.net> (permalink)
References (2 earlier) <1mbbgem.1c5wgf1wg8lxjN%blanc@empty.org> <d6lijaFp5p5U1@mid.individual.net> <1mbbxle.1fhkoazwqxratN%blanc@empty.org> <d6m18lFsuorU1@mid.individual.net> <1mbx1bv.1cq73bm1mjirk0N%blanc@empty.org>

Show all headers | View raw


JiPaul <blanc@empty.org> wrote:
> Jolly Roger <jollyroger@pobox.com> wrote:
> 
>> Great! You should clean it up and post it for anyone else who wants to
>> do something like this. : ) 
> 
> Actually I've had some problem with it. I think it's no ok killing
> cfprefsd agent when the screensaver is activ or when the monitor is
> sleeping.
> So I know how to detect that the ScSav is activ. But how could I know
> (by script of course) that the monitor is sleeping ? Have you an idea ?

I've used this command to see if the screen is asleep:

ioreg -n IODisplayWrangler | grep -i IOPowerManagement | perl -pe
's/^.*DevicePowerState\"=([0-9]+).*$/\1/'

If it returns 0, the screen is sleeping. 

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR 

Back to alt.comp.lang.applescript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[Applescript/shell script] how could I change the images folder of the screen saver ? blanc@empty.org (JiPaul) - 2015-09-25 09:45 +0200
  Re: [Applescript/shell script] how could I change the images folder of the screen saver ? Jolly Roger <jollyroger@pobox.com> - 2015-09-25 15:30 +0000
    Re: [Applescript/shell script] how could I change the images folder of the screen saver ? blanc@empty.org (JiPaul) - 2015-09-25 19:49 +0200
      Re: [Applescript/shell script] how could I change the images folder of the screen saver ? Jolly Roger <jollyroger@pobox.com> - 2015-09-25 18:37 +0000
        Re: [Applescript/shell script] how could I change the images folder of the screen saver ? blanc@empty.org (JiPaul) - 2015-09-26 00:06 +0200
          Re: [Applescript/shell script] how could I change the images folder of the screen saver ? Jolly Roger <jollyroger@pobox.com> - 2015-09-25 22:47 +0000
            Re: [Applescript/shell script] how could I change the images folder of the screen saver ? blanc@empty.org (JiPaul) - 2015-10-07 09:56 +0200
              Re: [Applescript/shell script] how could I change the images folder of the screen saver ? Jolly Roger <jollyroger@pobox.com> - 2015-10-07 16:20 +0000
                Re: [Applescript/shell script] how could I change the images folder of the screen saver ? blanc@empty.org (JiPaul) - 2015-10-07 21:15 +0200

csiph-web