Given currently selected items in the finder, I’d like to, via Applescript, invoke the built-in slideshow. Is this possible?
Can’t find any reference for it in the dictionary for Finder, but if it’s not there, can it be done via GUI scripting?
MTIA, Matthew
Bump.
I’m also looking for a solution to run Finder / Tiger slideshows from selected photos. Is there anyway to do it with actionscript, GUI scripting, automator, or shell scripts?
With applescript, I have found that I can select images, open them in the application “Preview” and then press Comannd-Shift-F to start a slideshow. This isn’t a very elegant solution though… Surely there’s got to be a better way.
I’m assuming by the number of responses to this thread that invoking a slideshow in Finder is impossible… Dang!
Try thiis:
tell application "Finder" to open the selection -- assuming that it's pdf.'s or preview stuff
do shell script "Sleep 2"
tell application "System Events"
tell process "Preview"
set frontmost to true
keystroke "f" using {command down, shift down}
end tell
end tell
Eelco Houwink
The following will “play” a Finder slideshow for the “picture” files currently selected in the Finder. Note that if you don’t have any “picture” files selected then the GUI scripting may cause unintended results.
tell application "System Events" to tell (process "Finder")
click menu button 1 of group 2 of tool bar 1 of front window
keystroke "Slideshow" & return
end tell