Forums

Launch POM Application from Shell Script

PowerPoint Viewer 2007

Auteur Réponses
blair19 Mardi 14 Juillet 2015 à 22:04
blair19Anonymous

Greetings.

I'm currently running POM 4.2.8 on OS X 10.6.8 on a Mac Mini with PowerPoint Viewer 2007 installed inside POM and working just fine. My goal is the following;

  1. The Mac Mini starts and automatically logs into limited user account
  2. A script has this Mac connect to a Windows share and copies over all .ppt and .pptx files to a local directory
  3. The script then generates the plain text playlist file based on the.ppt and .pptx files that are now present on the local directory
  4. The Script then launches PowerPoint Viewer 2007, and cycles through all presentations in the playlist.txt.

It's the 4th item that I require assistance with as so far I've only figured out how to..

1 - Launch POM from the terminal, sh /Applications/PlayOnMac.app/Contents/Resources/playonlinux/playonmac

2 - With the POM GUI open, I can launch the PlayOnMac Console through the GUI and launch the PowerPoint Viewer with switches to have it read a playlist.txt file that contains the location and names of a handful of .ppt and .pptx slide shows using...

POL_Wine /Users/blair19/PlayOnMac\'s\virtual\ drives/PPV2007_/drive_c/Program\ Files/Microsoft\ Office/Office12/PPTVIEW.exe /s /l z:\\Users\\blair19\\Documents\\Presentations\\Playlist.txt

I see in /Applications/PlayOnMac.app/Contents/Resources/playonlinux that there is playonlinux-shell and playonlinux-bash.

Attempting to run playonlinux-shell gives me an "ImportError" and tells me to "see 'man python' for running in 32-bit mode."

Attempting to run playonlinux-bash tells me to "Please install python before trying to run this program."

So yes, the mention of python is present in both errors.

     I've been reading through the Wiki scripting pages, but what I'm taking away is that it seems that these examples are showing how to script an application installation. What am I missing here?

     Any assistance in this would be much appreciated. My Mac/OS X experience is limited though my Linux experience seems to be helping a bit.

Quentin PÂRIS Mardi 14 Juillet 2015 à 22:07
Quentin PÂRIS
Admin

There is a solution, but before trying complicate stuff,

Have you tried to create a shortcut from PlayOnMac, and see if the generated .app scripts suits better for you?

Edité par Tinou

blair19 Mardi 14 Juillet 2015 à 23:17
blair19Anonymous

Wow, it was that simple. You're awesome!

My desktop shortcut that was created during my installation of PowerPoint Viewer 2007 is called PPTView.

so running sh Desktop/PPTVIEW.app/Contents/MacOS/playonmac /s /l z:\\Users\blair19\\Documents\\Presentations\\Playlist.txt did the trick.

With that I'm moving on to complete these other tasks in order to finalize this kiosk solution.

Thanks again! Any additional tips/tricks are certainly welcome.

Quentin PÂRIS Mardi 14 Juillet 2015 à 23:35
Quentin PÂRIS
Admin

You're welcome.

You may want to completely customize the generated .app and ask OSX to run it automatically run it on startup