• 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: Help with foreign language issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with foreign language issue


  • Subject: Re: Help with foreign language issue
  • From: Yvan KOENIG <email@hidden>
  • Date: Mon, 22 Aug 2005 21:26:11 +0200


Le 22 août 2005 , à 16:37, Emmett Gray a écrit :

Hi,

I have a script with the following:

tell application "Finder"
set theInfo to info for alias foo
  set theKind to kind of theInfo
   if theKind is "Folder" then ...etc

This is failing on a French language machine because it's not "Folder", it's "Dossier". What to do?

TIA

-

Hello

I hope that this piece of code may help.
CAUTION, don't include it in a tell Finder … end tell !!

set foo to "Macintosh HD:Users:yvankoenig:Desktop:tempo:"
--tell application "Finder"
set theInfo to a reference to info for alias foo
set folder_ to get (folder of theInfo)
set package_ to get (package folder of theInfo)
if (folder_ is true) and (package_ is false) then display dialog "this is a folder"
--end tell


Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Help with foreign language issue (From: Emmett Gray <email@hidden>)

  • Prev by Date: Re: Time to figure out what is going on... (results)
  • Next by Date: Re: Time to figure out what is going on... (fixed)
  • Previous by thread: Re: Help with foreign language issue
  • Next by thread: Re: Help with foreign language issue
  • Index(es):
    • Date
    • Thread