Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript shies away from porcupines



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


and do "Compile", then this gets transformed into:

tell application "Finder"
set macpath to file " ‘ßÀÏ:Volumes:‡¡Ëπ:Users" as Unicode text
open information window of macpath
activate
end tell


and a subsequent "Run" complains (quite understandable) about this ridiculous path.

So, if "as alias" does not work, what exactly to use instead?

Oddly enough, it seems to work for me in Script Editor under Leopard:

tell application "Finder"
	set theFile to POSIX file "/เม่น"
	open theFile
end tell

The file opens, and doesn't get transformed into anything. What version of OS X are you running?

Charles_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSAppleScript shies away from porcupines (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: NSAppleScript shies away from porcupines (From: Andrew Farmer <email@hidden>)
 >Re: NSAppleScript shies away from porcupines (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: NSAppleScript shies away from porcupines (From: Jason Coco <email@hidden>)
 >Re: NSAppleScript shies away from porcupines (From: "Gerriet M. Denkmann" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.