FROM : M. Uli Kusterer
DATE : Tue Dec 07 19:26:32 2004
At 20:37 Uhr +1100 07.12.2004, Stephen J McIntosh wrote:
>I have the following script which is sent to my test application
>tell application "ImageBuddy"
> open file "/Users/stephenmcintosh/Pictures/100_0590.JPG"
>end tell
That's wrong. AppleScript takes old-style HFS paths. Since
HFS-to-Unix-path conversion happens by swapping colons and slashes
(mostly), this explains why you seem to be getting an HFS path.
You're not, you're just passing in a file name containing slashes,
instead of a pathname...
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
DATE : Tue Dec 07 19:26:32 2004
At 20:37 Uhr +1100 07.12.2004, Stephen J McIntosh wrote:
>I have the following script which is sent to my test application
>tell application "ImageBuddy"
> open file "/Users/stephenmcintosh/Pictures/100_0590.JPG"
>end tell
That's wrong. AppleScript takes old-style HFS paths. Since
HFS-to-Unix-path conversion happens by swapping colons and slashes
(mostly), this explains why you seem to be getting an HFS path.
You're not, you're just passing in a file name containing slashes,
instead of a pathname...
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
| Related mails | Author | Date |
|---|---|---|
| Stephen J McIntosh | Dec 7, 10:37 | |
| M. Uli Kusterer | Dec 7, 19:26 | |
| daniel | Dec 9, 17:43 | |
| Charles Srstka | Dec 10, 06:59 |






Cocoa mail archive

