background preloader

Mac OS, FaceTime, terminal

Facebook Twitter

Remote Control iTunes. AppleScript. AppleScript is a scripting language created by Apple Inc. and built into Macintosh operating systems since System 7.

AppleScript

The term "AppleScript" may refer to the scripting system itself, or to an individual script written in the AppleScript language. AppleScript is primarily a scripting language developed by Apple to do Inter-Application Communication (IAC) using AppleEvents. AppleScript is related to, but different from, AppleEvents. AppleEvents is designed to exchange data between and control other applications in order to automate repetitive tasks. AppleScript has some limited processing abilities of its own, in addition to sending and receiving AppleEvents to applications. AppleScript has some elements of object-oriented programming, particularly in the construction of script objects, and natural language programming tendencies in its syntax, but does not strictly conform to either category. History[edit] Basic concepts[edit] Hello, World!

In AppleScript, the traditional Hello, world! [edit] How To Create a Security Cam with FaceTime for Mac and AppleScript. Posted 10/22/2010 at 2:08pm | by Cory Bohon We bet that by now you’ve had the opportunity to try out Apple’s newly released beta of FaceTime on the Mac.

How To Create a Security Cam with FaceTime for Mac and AppleScript

Here at Mac|Life, we’ve definitely had a lot of fun testing it, but we recently thought it would be a cool idea to make it even more useful. What if you could use FaceTime on the iPhone 4 and new iPod touch to call your Mac to check in on your house or office, without being home to answer the call. Imagine your new MacBook Air doubling as a security camera. While you could train your pets to automatically answer your FaceTime calls, we wanted our Mac to automatically answer the FaceTime call, giving us complete freedom when calling into our home or office Mac. But, there is a work around, and that’s what we will show you how to do in this how-to. What You’ll Need: - AppleScript Editor (located in /Applications/Utilities/)- FaceTime beta (already set up)- iPhone 4, iPod touch, or another Mac- A little patience 1.

Click image to embiggen. 6: Enable AutoAnswer in FaceTime for the Mac. My previous solution to auto answering FaceTime calls involved AppleScript, which required 'Access to assistive devices' to be enabled.

6: Enable AutoAnswer in FaceTime for the Mac

I thought this method , while it worked, was too cumbersome, so I began to dig into FaceTime to find a way around the whole AppleScript approach. I fired up the Terminal to start hacking away at FaceTime. I ran the command: strings /Applications/FaceTime.app/Contents/MacOS/FaceTime and, to my surprise I found two little preference strings of text called AutoAcceptInvites and AutoAcceptInvitesFrom. It turns out that Apple has included the ability to auto answer FaceTime calls, and not only that, but AutoAnswer calls only from callers you specify. Open up the Terminal.app located in your /Applications/Utilities folder. Type in the following command to allow a specified caller for auto accept incoming calls (substituting the appropriate value for indentifier): defaults write com.apple.FaceTime AutoAcceptInvitesFrom -array-add <identifier> A phone number example: