[Tutor] [OSX] "Executable" .py or pyc script (stuck at Applescript)
Steven D'Aprano
steve at pearwood.info
Thu Nov 10 14:14:51 CET 2011
learner404 wrote:
> Hello list!
>
> - myapp.py is in a "myfolder" folder that the "users" will be able to
> download and put anywhere on their Mac.
[...]
> In both cases OSX complains it can't find the file.
Do you mean that AppleScript can't find the file, or that Python can't
find the file?
Please don't summarize or paraphrase errors. Please copy and paste the
EXACT error message that is shown.
If this is a problem with AppleScript being unable to find the file, you
will be better off asking on an AppleScript mailing list.
In general, on Unix-like systems (and that includes Mac OS X), you can't
expect a command like:
python myapp.py
to work unless myapp.py is in the current directory.
--
Steven
More information about the Tutor
mailing list