• 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
Rép : Where is Trash Folder(?)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép : Where is Trash Folder(?)?


  • Subject: Rép : Where is Trash Folder(?)?
  • From: Yvan KOENIG <email@hidden>
  • Date: Sat, 26 Sep 2015 21:04:41 +0200

I was confirmed off list that "open folder TrashFolder" which behaves flawlessly when the system run in French fails when it run in English.
As  "open TrashFolder" works everywhere I edited my late version.
I left the original version as a reminder. Without it I would probably forget this behavior.

set trash_loc to my getLocalizedString("Finder", "AXICON6")

set TrashFolder to path to trash
tell application "Finder"
activate
set windowList to name of Finder windows as text
log windowList
# display dialog windowList
if windowList contains trash_loc then
close window trash_loc
else
-- open folder TrashFolder #  works in French but fails in English
open TrashFolder # this one works everywhere
end if
end tell

on getLocalizedString(a, x)
return localized string x in bundle path to application a
end getLocalizedString


Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) samedi 26 septembre 2015 21:03:12




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Where is Trash Folder(?)?
  • Next by Date: Re: Where is Trash Folder(?)?
  • Previous by thread: Re: Where is Trash Folder(?)?
  • Next by thread: Another darn problem that's beyond me.
  • Index(es):
    • Date
    • Thread