• 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: selection bug in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selection bug in Finder


  • Subject: Re: selection bug in Finder
  • From: "koenig.yvan" <email@hidden>
  • Date: Thu, 17 Jan 2013 17:05:25 +0100


Le 17/01/2013 à 16:18, Luther Fuller <email@hidden> a écrit :

Recall that I'm having a problem with a handler that begins …

on getSelection()
tell application "Finder"
activate
set selList to get selection


I added a few lines of code to get this ...

on getSelection()
tell application "Finder"
activate
set win1 to window 1
try
set folder2 to target of window 2
close window 2
open window of folder2
set index of win1 to 1
end try
set selList to get selection

I tested with this change and found that my problem has gone away.

But, I don't really like this fix. I've tried some simpler code, such as …

set index of window 1 to 1

but that didn't work. I'll try to improve this later.


Would be a good idea to apply the tip given by Christopher Stone.

It always solved the problem for me.

Yvan KOENIG (VALLAURIS, France) jeudi 17 janvier 2013 17:05:03


 _______________________________________________
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: 
 >selection bug in Finder (From: Luther Fuller <email@hidden>)
 >Re: selection bug in Finder (From: Christopher Stone <email@hidden>)
 >Re: selection bug in Finder (From: Christopher Stone <email@hidden>)
 >Re: selection bug in Finder (From: Luther Fuller <email@hidden>)
 >Re: selection bug in Finder (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: selection bug in Finder
  • Next by Date: Re: selection bug in Finder
  • Previous by thread: Re: selection bug in Finder
  • Next by thread: Re: selection bug in Finder
  • Index(es):
    • Date
    • Thread