5
votes
1answer
328 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
112 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
841 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 ...