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

Re: Finder error


  • Subject: Re: Finder error
  • From: "Stockly, Ed" <email@hidden>
  • Date: Mon, 04 Jan 2010 12:29:17 -0800
  • Thread-topic: Finder error

Title: Re: Finder error
I don’t think you’ve given us enough information....

tell application "Finder"
    
set
search to text returned of (display dialog "Enter Youtube Search" default answer "" buttons {"Search", "Cancel"} default button 1)
    
    
open location "http://www.youtube.com/results?search_query=" & search
end tell

This script runs fine on my mac.  (Although it would be better to move the open location command outside the finder tell.

But, this is not opening a “Search window”.  Instead it displays an applescript dialog, then uses the text from that dialog to form a url, and opens that url in the default browser.

I do not get either the error message you’re reporting, or the odd looking dialog in your post.

ES



On 1/4/10 12:12 PM, "Andrew Marquette"  wrote:

I'm getting the following error in script editor when trying to run simple applescripts that bring up a search window for various tasks:

error "Finder got an error: An error of type -30581 has occurred." number -30581

Looking at the Console message logs I see this:

1/4/10 2:35:10 PM AppleScript Editor284 <http://discussions.apple.com/> *** WARNING: Method selectedRowEnumerator in class NSOutlineView is deprecated. It will be removed in a future release and should no longer be used.

Although I'm not quite sure if this is even related to the error message I'm receiving.

The scripts compile just fine and a finder window actually does pop up when running the script, however, the finder window's search box is a garbled image. I've enclosed a screen shot of what I'm experiencing...

Here's one of the scripts in question:

set search to text returned of (display dialog "Enter Youtube Search" default answer "" buttons {"Search", "Cancel"} default button 1)

open location "http://www.youtube.com/results?search_query=" & search



_______________________________________________
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
 _______________________________________________
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: Finder error
      • From: Carlos Ysunza <email@hidden>
References: 
 >Finder error (From: Andrew Marquette <email@hidden>)

  • Prev by Date: Re: Finder error
  • Next by Date: Re: Applescript and memory
  • Previous by thread: Re: Finder error
  • Next by thread: Re: Finder error
  • Index(es):
    • Date
    • Thread