• 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: Can't get finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get finder selection


  • Subject: Re: Can't get finder selection
  • From: Robert Poland <email@hidden>
  • Date: Mon, 21 Jan 2008 15:25:11 -0700

All,

Got everything to work except the Leopard bug in choose from list.

Seems that in trying to get the script to work with Leopard I had put the wdw code in and broke other things.

The real problem apparently was, in Tiger, I used "selection" throughout the script. Apparently Leopard won't allow that. Adding "set x to selection" then using "x" throughout the script fixes that.

Thanks for all the advice,


On Jan 21, 2008, at 8:20 AM, Robert Poland wrote:

Wizards,

I have a script that used to work with Tiger. Now with Leopard there are several problems. The first one is ;

When I run the script below I get the error;

Finder got an error: Can't get selection of Finder
window id 66.

Also I'm not sure if the "set x" will work as stated, can't get that far.

--******
tell application "Finder"
if exists Finder window 1 then -- make sure there is a window 
set wdw to Finder window 1
tell wdw
if selection is not {} then
set x to selection as list
end if
end tell
end if
end tell
--******

Bob Poland - Fort Collins, CO

Bob Poland - Fort Collins, CO



 _______________________________________________
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: 
 >Can't get finder selection (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: "a reference to"
  • Next by Date: Re: Choose from List & Return Item Number
  • Previous by thread: Re: Can't get finder selection
  • Next by thread: A Tutorial on AppleScripting a mySQL Database
  • Index(es):
    • Date
    • Thread