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

Old scripts failing


  • Subject: Old scripts failing
  • From: Robert Poland <email@hidden>
  • Date: Mon, 15 Apr 2019 17:58:43 -0600
  • Z-usanet-msgid: XID737XDoX7S6336X31

Hi,

This old script now fails after running for over a year.

“# /Users/rpoland/Desktop/T'ai Chi Chih~ƒ” is path to file.

What’s changed? Do I need the “Use” gibberish to make it work now?

<script>
(* open_T’ai_Chi_Chih - 12/16/2017 By R L Poland.   modified name to make
script not error.
*)

tell application "Finder"
        activate
        set chiFolder to "" & (path to desktop folder as text) & "T'ai Chi
Chih~ƒ"
        # display dialog chiFolder
        set windowList to name of Finder windows as text
        display dialog windowList
        if windowList contains "Chi Chih" then
                close window "T'ai Chi Chih~ƒ"
        else
                open folder chiFolder
        end if
end tell

# /Users/rpoland/Desktop/T'ai Chi Chih~ƒ

1error "Finder got an error: Can’t get window \"T'ai Chi Chih~ƒ\"." number
-1728 from window "T'ai Chi Chih~ƒ"error "Finder got an error: Can’t get window
\"T'ai Chi Chih~ƒ\"." number -1728 from window "T'ai Chi Chih~ƒ”
</script>

Tia,
Robert Poland
iMac, Late 2013,
  3.2 GHz Intel Core I5, 27”
  16 GB Ram, 1TB Fusion HD
  macOS 10.14.4
(Mojave)
 _______________________________________________
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

  • Follow-Ups:
    • Re: Old scripts failing
      • From: Christopher Stone <email@hidden>
    • Re: Old scripts failing
      • From: Iurista GmbH <email@hidden>
    • Re: Old scripts failing
      • From: Steve Mills <email@hidden>
  • Prev by Date: Sending mail from an Applescript on Mojave
  • Next by Date: Re: Sending mail from an Applescript on Mojave
  • Previous by thread: Re: Sending mail from an Applescript on Mojave
  • Next by thread: Re: Old scripts failing
  • Index(es):
    • Date
    • Thread