• 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
Simple script used to work, not now
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple script used to work, not now


  • Subject: Simple script used to work, not now
  • From: Dave C <email@hidden>
  • Date: Mon, 26 Nov 2012 17:22:00 -0800

I used this script successfully under 10.6.8 for more than a year. Now I bought a new hard drive, installed 10.6.8 onto it, and am in the process of moving over everything to the new drive.

I run this script (it toggles all Finder files between visible and invisible) and this time it freezes up. I open the AS Editor and run it there. It seems to hang up at the end when activating the previously-quit Finder:

     "Finder got an error: Connection is invalid." number -609

Ideas?

Thanks,
Dave

- - -

set dotVisible to do shell script "defaults read com.apple.Finder AppleShowAllFiles"
if dotVisible = "0" then
do shell script "defaults write com.apple.Finder AppleShowAllFiles 1"
else
do shell script "defaults write com.apple.Finder AppleShowAllFiles 0"
end if
tell application "Finder" to quit
delay 1
tell application "Finder" to activate

- - -

2011 Mini 2.7 GHz dual i7 / 16 GB / 250 GB & 750 GB
OS X 10.6.8 Snow Leopard

 _______________________________________________
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: Simple script used to work, not now
      • From: Luther Fuller <email@hidden>
    • Re: Simple script used to work, not now
      • From: Iurista GmbH <email@hidden>
    • Re: Simple script used to work, not now
      • From: Iurista GmbH <email@hidden>
    • Re: Simple script used to work, not now
      • From: Lists <email@hidden>
    • Re: Simple script used to work, not now
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Xcode Installation
  • Next by Date: Re: Simple script used to work, not now
  • Previous by thread: Re: how to add a file to my Xcode project using AS
  • Next by thread: Re: Simple script used to work, not now
  • Index(es):
    • Date
    • Thread