Re: Finder error
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