• 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: Old scripts failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Old scripts failing


  • Subject: Re: Old scripts failing
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 16 Apr 2019 17:00:37 -0500

On 04/16/2019, at 15:42, Robert Poland <email@hidden
<mailto:email@hidden>> wrote:
> These failed scripts are called from a Keyboard Maestro command.


Hey Bob,

Hmm...

You've quit and restarted the Keyboard Maestro Engine and/or the macOS?

Give this a try:

set folderName to "T'ai Chi Chih~ƒ"
set chiFolder to (path to desktop folder as text) & folderName

tell application "Finder"
    set windowList to name of windows
    if windowList contains folderName then
        close window folderName
    else
        open alias chiFolder
    end if
end tell


--
Take Care,
Chris

 _______________________________________________
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

References: 
 >Old scripts failing (From: Robert Poland <email@hidden>)
 >Re: Old scripts failing (From: Christopher Stone <email@hidden>)
 >Re: Old scripts failing (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Old scripts failing
  • Next by Date: Re: Move-copy-alias selected file to chosen destination folder
  • Previous by thread: Re: Old scripts failing
  • Next by thread: Move-copy-alias selected file to chosen destination folder
  • Index(es):
    • Date
    • Thread