FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

SystemEvents vs. SEC Helper

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
maelcum
Junior Member


Joined: 09 Dec 2007
Posts: 35

PostPosted: Mon Dec 17, 2007 5:10 pm    Post subject: SystemEvents vs. SEC Helper Reply with quote

Hello,

I'm learning to script Clicker by looking at other peoples great work.
By doing so I came across those two similar (looking?) lines:
[code:1]tell application "System Events" to set the process_flag to (exists process "ScreenSaverEngine")

tell application "SEC Helper" to set the process_flag to check application availability "ScreenSaverEngine"
[/code:1]
For the moment, I am assuming they do the same task. The first command by asking the System (OS X), the second command by using a function of Clicker (via SEC Helper). Is this correct?

If they *are* the same: Is there an advantage doing the one or the other?

Cheers.
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Mon Dec 17, 2007 7:04 pm    Post subject: Reply with quote

They are essentially the same nowadays. The "SEC Helper" variant was introduced to work around a bug in "System Events" that was fixed quite some time ago.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group