re: NSAppleScript shies away from porcupines

2008-08-27 Thread has
Jason Coco wrote: I did a test with this... it seems that the code to resolve the alias in AppleScript doesn't like non-latin encoded pathnames. I think you're right - from dim and distant memory I seem to recall that AppleScript's ' as alias' coercion often doesn't work with non-ASCII

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Jason Coco
On Aug 26, 2008, at 16:54 , Gerriet M. Denkmann wrote: On 27 Aug 2008, at 02:09, has wrote: Gerriet M. Denkmann wrote: When I try in Script Editor: set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode text and do "Compile", then this gets transformed into: set macpath to file "

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
On 27 Aug 2008, at 02:09, has wrote: Gerriet M. Denkmann wrote: When I try in Script Editor: set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode text and do "Compile", then this gets transformed into: set macpath to file " ‘ßÀÏ:Volumes:‡¡Ëπ:Users" as Unicode text Sounds like

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread has
Gerriet M. Denkmann wrote: When I try in Script Editor: set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode text and do "Compile", then this gets transformed into: set macpath to file " ‘ßÀÏ:Volumes:‡¡Ëπ:Users" as Unicode text Sounds like you're on 10.4 or earlier. AppleScript o

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Charles Srstka
On Aug 26, 2008, at 11:34 AM, Gerriet M. Denkmann wrote: Could you tell me the exact appscript code? When I try in Script Editor: tell application "Finder" set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode text open information window of macpath activate end tell

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
On 26 Aug 2008, at 20:58, Jason Coco wrote: On Aug 26, 2008, at 04:19 , Gerriet M. Denkmann wrote: On 26 Aug 2008, at 15:04, Andrew Farmer wrote: On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = "tell application "SomeApp"... You're making things h

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Jason Coco
On Aug 26, 2008, at 04:19 , Gerriet M. Denkmann wrote: On 26 Aug 2008, at 15:04, Andrew Farmer wrote: On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = "tell application "SomeApp"... You're making things harder than they need to be. [[NSWorkspace shar

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
On 26 Aug 2008, at 15:04, Andrew Farmer wrote: On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = "tell application "SomeApp"... You're making things harder than they need to be. [[NSWorkspace sharedWorkspace] openFile:@"/path/to/file" withApplication:@

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Andrew Farmer
On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = "tell application "SomeApp"... You're making things harder than they need to be. [[NSWorkspace sharedWorkspace] openFile:@"/path/to/file" withApplication:@"SomeApp"]; As to AppleScript's Unicode support,