FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Skype Proximity Script

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
andy.mcconnell
Newbie


Joined: 19 Sep 2007
Posts: 5

PostPosted: Wed Sep 19, 2007 5:23 pm    Post subject: Skype Proximity Script Reply with quote

Hello everyone. I've built on the work done by others ( Seth Johnson, Filip Bunkens & Simon Schoeters - thank you!!!) by modifying their Adium Proximity Control script to work with Skype. I've only addressed the IM and presence capabilities of Skype, not any of the calling features.

This is my first foray into AppleScript, and Skype's API, so I fully expect a ton of constructive criticism! Please feel free to test this as you wish, and I'll take ANY feedback or suggestions for improvement!

Thanks to the Adium script developers and to Skype for their API.

-Andy
{ Code removed and posted as .cgz }


Last edited by andy.mcconnell on Wed Sep 19, 2007 6:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Wed Sep 19, 2007 6:45 pm    Post subject: Reply with quote

Thanks. One tip: select to *export* the script from Clicker and attach it here as a file instead of just pasting the code (which will need reformatting before it can compile). Just a tip to make it easier for others to make use of your work.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
andy.mcconnell
Newbie


Joined: 19 Sep 2007
Posts: 5

PostPosted: Wed Sep 19, 2007 6:57 pm    Post subject: Re: Skype Proximity Control (repost with attachment) Reply with quote

Will do - thank you for the guidance, Jonas!
The new posting is changed in the original message.
Back to top
View user's profile Send private message
F-5 System
Newbie


Joined: 01 Nov 2007
Posts: 1

PostPosted: Thu Nov 01, 2007 11:08 am    Post subject: Reply with quote

This file couldn't be seen if you are not logged in :( Please fix it

And I can't find it after importing, tried several times, it asks about creating copies but nothing.
Back to top
View user's profile Send private message
maelcum
Junior Member


Joined: 09 Dec 2007
Posts: 35

PostPosted: Mon Dec 17, 2007 11:29 pm    Post subject: hmmm Reply with quote

Hi,

while examining the script I realized that
[code:1]on entered_proximity()
end entered_proximity
[/code:1]
and
[code:1]on process entering proximity a_terminal
end process entering proximity a_terminal
[/code:1]
are used alternatively.

Is that really so? Or are there advantages or disadvantages to either method? Apart from more letters in the latter alternative... :-)
(Is there a command reference, other than what I can see in ScriptEditor?)

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


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

PostPosted: Tue Dec 18, 2007 1:52 am    Post subject: Reply with quote

Excellent questions!

The latter is a newer-style scripting syntax introduced in 3.0. You'll see similar constructs in all types of call-backs.

The newer (event-based) style, in addition to being more future-proof, was introduced for a number of reasons:

1. It's auto-documented in the scripting dictionary.

2. They support "delegation" (not true for phone events, but other widget-related callbacks). You can have an AppleScript object respond to events (not just one callback per script file).

More on #2 in the future.

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