• 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: Carlos Ysunza <email@hidden>
  • Date: Mon, 04 Jan 2010 17:14:03 -0600
  • Thread-topic: Finder error

Title: Re: Finder error
Here it works ok, on the other hand you don’t need the Finder, it works just like:
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
this way you avoid the finder error

Carlos Ysunza



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

 _______________________________________________
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: 
 >Re: Finder error (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Say "What?"
  • Next by Date: Re: Say "What?"
  • Previous by thread: Re: Finder error
  • Next by thread: Photoshop layer set
  • Index(es):
    • Date
    • Thread