Jon Crain Posted August 14, 2007 Posted August 14, 2007 I think I've asked this question on here before, but I have a solution and I'd like to share it and see if others can help make it better. There are a few parts of the script which currently need to be adjusted which I'd like to make portable to any user and any file. Here is the basic script (for use on a mac with built-in iSight and Photo Booth application)... #This script will not work till you specify the user directory under the "Insert Picture" step & the last step. Perform AppleScript [tell application "Finder" delete file "Macintosh HD:Users:crain1jp:Pictures:Photo Booth:Photo 1.jpg" end tell] Perform AppleScript [Tell Application "Photo Booth" to activate] Pause/Resume Script [indefinitely] #Here the app opens and the user takes a picture Go to Field [info::Picture] #Here is where you have to specify a couple things, the hard drive name and the user name and also make sure that there are no previous pictures. Insert Picture [imagemac:/Macintosh HD/Users/crain1jp/Pictures/Photo Booth/Photo 1.jpg] Obviously I'd like to find a way of automatically finding the HD name and the user name, but haven't been able to do that yet. Any suggestions? Hope this helps others. jon
Jon Crain Posted September 6, 2007 Author Posted September 6, 2007 I figured it out, and it is now useful for anyone who needs to have an automatic photo import in their solution. (CAUTION: it does move the file "Photo 1.jpg" in your /Pictures/Photo Booth directory to the Trash) Picture.fp7.zip
Recommended Posts
This topic is 6289 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now