Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript: Problem with feeding

AppleScript: Problem with feeding
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2008
Status: Offline
Reply With Quote
Sep 17, 2008, 05:41 PM
 
First, I must say I'm an AppleScript noob. However, I managed to find a script that is pretty close to what I want to do. The script I found takes the current iPhoto album and turns it into a Keynote presentation. The only change I need to make to it is to feed it with a location of the files, rather than an iPhoto album.

The script looks like this:

Code:
tell application "iPhoto" set curAlbum to a reference to current album if (count photos of curAlbum) is 0 then return set photoList to image path of photos of curAlbum set photoListRef to a reference to photoList end tell tell application "Keynote" launch set thisTheme to "White" set thisTheme to thisTheme as Unicode text set themeData to {theme:thisTheme, slideSize:{1920, 1080}} set thisSlideshow to make new slideshow at end of slideshows with data themeData tell thisSlideshow -- make image slides make image slides paths photoListRef with set titles delete first slide of thisSlideshow set slideCount to count slides end tell start from slide 1 of front slideshow end tell

Can anyone help me modify that to work with a static path (ie. /Users/foo/tmp/images).?
     
Fresh-Faced Recruit
Join Date: Oct 2008
Status: Offline
Reply With Quote
Oct 11, 2008, 05:12 PM
 
Go to http://bbs.macscripter.net/ - they are nice (if you are) and they have helped me with all the Apple Script problems I had.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2