I am trying to add a menu item to launch slideshow from folder right click, so far this is what I have
I don't think I am doing wrong, the script in directory slideShow/scripts/slideshow is an executable, that has following content:
#! /usr/bin/env python
# -*-coding: utf8-*-
# file: slideShow
import os
import sys
MODULES_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "python")
sys.path.insert(0, MODULES_PATH)
import utils
import slideShow
slideShow.main(utils.ingestData(os.getcwd()))
So the question is why does the script from automator manages to write file text555.txt on desktop with correct path but cannot execute the same script?
there is a similar question here on stack overflow, but I am trying to launch python script. I tried with replacing scripts/slideshow with python/slideshow.py to make it work with subproces.call(['python', fto]) but that too doesn't work?
I am on Mac OSx 10.7.4.