Old scripts failing
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