[php]
-- make this script a a Folder Action for added files
on adding folder items to watchFolder after receiving newItems
showPresentation(newItems)
end adding folder items to
-- Routine that shows a powerpoint presentation
to showPresentation(newItems)
-- display dialog "folder script starts" buttons {"OK"} default button 1
tell application "Finder"
repeat with thisFile in newItems
if kind of thisFile is "Microsoft PowerPoint document" then
tell application "Microsoft PowerPoint"
activate
if start up dialog then
set start up dialog to false
end if
close active presentation
close every window
open thisFile
set these_settings to the slide show settings of the front presentation
run slide show these_settings
end tell
end if
end repeat
end tell
end showPresentation
[/php]
{edit: added code to close start up dialog }
{edit2: added code to close any active presentations before showing new one.}
•Copy the code above and paste into script editor.
•Save it to the presentation machine at the path: /Library/Scripts/Folder Action Scripts/ (creating any folders as necessary)
•Make a new folder on the presentation machine (e.g. ~/presentations/)
•Right-click the new folder in the finder and choose "Configure Folder Actions")
•In the window that pops up make sure that the "Enable Folder Actions" checkbox is ticked.
•Press the Plus button at the bottom of the window - choose the Presentations Folder - then choose the script from the sheet.
You should then be able to upload presentations to
ftp://presentationMachineRendezvousN...Presentations/ and they should (cross fingers) auto present.
If you've applied the recent OS X security update then uploaders will require an SFTP client.