View previous topic :: View next topic |
Author |
Message |
Wooden Brain Junior Member
Joined: 19 Jun 2005 Posts: 59
|
Posted: Sun Jun 19, 2005 4:57 pm Post subject: apple event codes |
|
|
I had the following exchange with a user on the version tracker forum about my WBC iTunes Suite.
What is : «event seClChkA»
Better yet, where would one turn to find that out other than a public forum or the developer? It would be good information to know.
-----------------------------------
Running the WBC iTunes for Salling Clicker under Mac OS 10.4.1 will start iTunes but then stops with this error message in the Applescript log: SEC Helper got an error: "iTunes" doesn't understand the «event seClChkA» message. [alert admin]
COMMENTS
1 comments
Not compatible with iTunes 4.8 Wooden Brain
actually it is perfectly compatible with iTunes 4.8 and Tiger 10.4.1, which is my development system at the moment. That looks like a Salling Clicker event code, though I'm not sure off hand what it is. It's possible you have an older version of Salling Clicker. |
|
Back to top |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
Posted: Sun Jun 19, 2005 5:39 pm Post subject: Re: apple event codes |
|
|
Looks like you're trying to send a Clicker command to iTunes. "seCl" is the Clicker suite and "ChkA" is... let me look... "CheckAppLaunched" (a.k.a. "check application availability").
Make sure the user has Clicker 2.2.1 installed.
Going forward, you may possibly want to wrap this 2.2.1 specific command in a try/on error block and fall back to the pre-2.2.1 method (the one using System Events to find out if an application is launched).
Best.
--
Jonas
[quote="Wooden Brain"]I had the following exchange with a user on the version tracker forum about my WBC iTunes Suite.
What is : «event seClChkA»
Better yet, where would one turn to find that out other than a public forum or the developer? It would be good information to know.
-----------------------------------
Running the WBC iTunes for Salling Clicker under Mac OS 10.4.1 will start iTunes but then stops with this error message in the Applescript log: SEC Helper got an error: "iTunes" doesn't understand the «event seClChkA» message. [alert admin]
COMMENTS
1 comments
Not compatible with iTunes 4.8 Wooden Brain
actually it is perfectly compatible with iTunes 4.8 and Tiger 10.4.1, which is my development system at the moment. That looks like a Salling Clicker event code, though I'm not sure off hand what it is. It's possible you have an older version of Salling Clicker.[/quote] |
|
Back to top |
|
 |
Wooden Brain Junior Member
Joined: 19 Jun 2005 Posts: 59
|
Posted: Sun Jun 19, 2005 6:45 pm Post subject: how do you know what commands are new? |
|
|
Thanks. I just started scripting (and using, really) Salling Clicker with this 2.2.1 release. How would I know what commands are incompatible with older versions?
By the way, the error in question comes from Salling's own iTunes Remote, so the user would have the same problem with the default one.
I think this should fix it (as recommended):
on is_application_launched()
try
tell application "SEC Helper"
set the process_flag to (check application availability "iTunes")
end tell
on error
set process_flag to false
tell application "System Events" to set theprocs to the name of every process
if theprocs contains "iTunes" then set process_flag to true
end try
if the process_flag then
return true
end if
return false
end is_application_launched |
|
Back to top |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
Posted: Sun Jun 19, 2005 8:41 pm Post subject: |
|
|
The user in question should contact me instead of writing on versiontracker.
He wouldn't get this error from a default clicker script unless he was using 2.2.1 already. Something is very weird with his setup.
Again. He should contact me to get this resolved.
Best.
--
Jonas |
|
Back to top |
|
 |
|