• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finder scripting dies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder scripting dies


  • Subject: Re: Finder scripting dies
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 21 Oct 2003 22:01:59 -0400

On Tuesday, Oct 21, 2003, at 17:13 US/Eastern, Christopher Nebel wrote:

On Oct 21, 2003, at 12:51 PM, Emmanuel wrote:

At 9:31 AM -0700 10/19/03, Paul Berkowitz wrote:
This miscegenation of a list server has obscured the fact that the name of
his disk contains an accented letter (e-acute) - bowdlerized on this mailing
list to an "i".

Just in case it is not well-known, you cannot have AppleScript work correctly
on a machine where the startup disk's name includes an accented character (as
for OS10.2.6).

I filed the bug on sep.5th, it was accepted as #3410131 and its status Open/Analyze.

Just to be clear, "cannot have AppleScript work correctly" is a severe overstatement. The problem occurs specifically with path strings in the Finder, and happens when the disk name in the path has a non-ASCII character -- nothing to do with the startup disk's name per se.

It does not occur in plain AppleScript (e.g., using "info for"), and can be worked around in the Finder using either long specifiers (e.g., folder "foo" of disk "accent") or an extra "alias" (e.g., folder (alias "accent:foo:") ).


--Chris Nebel
AppleScript Engineering
_______________________________________________


Why does this works:

set k to (path to the desktop) as string
tell application "Finder" to get name of folder (k)
-->Desktop

and this:
set k to (path to the desktop) as string
tell application "Finder" to get name of alias (k)
-->Desktop

but this doesn't:

set k to (path to the desktop) as string
tell application "Finder" to get name of folder ( alias k)
-->"Finder got an error: A descriptor type mismatch occurred."

However, this does:

tell application "Finder" to get name of folder (alias "SantosFC:Users:deivy:Desktop:")
-->Desktop

Thanks.

Regards

Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Finder scripting dies
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Finder scripting dies (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Simple question - how2 launch apps in OS X via a script
  • Next by Date: Re: Get IP Address
  • Previous by thread: Re: Finder scripting dies
  • Next by thread: Re: Finder scripting dies
  • Index(es):
    • Date
    • Thread