0
votes
2answers
23 views

Geeklet script to ping hosts

I have found the nice script below to ping a host to check if it is up or down. However I haven't found a way (and my very basic programming knowledge has failed me here) on how I can ping multiple ...
0
votes
1answer
46 views

Is it possible to “shut off” battery charging in OSX [duplicate]

Is it possible to "shut off" battery charging in OSX with an application rather then physically. Could this be done with AppleScript (I doubt it) or will need to be obj-c cocoa application? ...
5
votes
1answer
397 views

How can I find the intersection of two lists in AppleScript?

Let's say I have two lists in AppleScript: set listA to {"red", "green", "blue"} set listB to {"green", "blue"} I'd like to create a third list that has only the items present in both lists: set ...
1
vote
2answers
114 views

Scripting environment setup

When I start a session programming on my macbook pro, I have a bunch of apps I'd like open and ready: DevNull smtp java server (run from terminal with java -jar DevNull.jar) Terminal shell in the ...
1
vote
1answer
963 views

How to interact with programs when names read from a list

I have a script which checks for loads of applications if they are open, and closes them if yes, and opens them if not. Until now I had a simple: tell application "System Events" if exists (process ...