In article
,
Adam Morris wrote:
> > app("Finder").items[mactypes.Alias("/path/to/file")]
> It works! Thanks!!
> (So simple, actually)
It is simple but not necessarily obvious. I've been using appscript for
a number of years but it was just fairly recently that I ran across that
reference fo
> app("Finder").items[mactypes.Alias("/path/to/file")]
It works! Thanks!!
(So simple, actually)
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/opt
In article
,
Adam Morris wrote:
> I posted a question a few months ago and didn't quite get the answer I
> was looking for, so this is my second attempt.
>
> I need the following applescript translated into python appscript:
>
> tell application "Finder" to "/path/to/file" as POSIX file as ali
Hello again, all:
I posted a question a few months ago and didn't quite get the answer I
was looking for, so this is my second attempt.
I need the following applescript translated into python appscript:
tell application "Finder" to "/path/to/file" as POSIX file as alias
The earlier answer given
> mactypes.Alias(unicodedata.normalize('NFD', os.path.abspath(path)))
I want the result to respond to the Finder's dictionary, though, so
wouldn't I need the Finder to wrap it rather than from the mactypes
module?
comment.get() on the resulting object doesn't work.
___
Am 2011-06-30 um 13:52 schrieb Adam Morris:
I have an AppleScript snippet that I need translating to python
appscript; too low-level for ASTranslate to handle:
tell application "Finder"
"/Users/brainysmurf/Desktop" as POSIX file as alias
end tell
mactypes.Alias(unicodedata.normalize('
I have an AppleScript snippet that I need translating to python
appscript; too low-level for ASTranslate to handle:
tell application "Finder"
"/Users/brainysmurf/Desktop" as POSIX file as alias
end tell
I'm writing a wrapper class for the Finder and want to be able to pass
/path/to/doc to