Re: Finder thru Safari
Re: Finder thru Safari
- Subject: Re: Finder thru Safari
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 20 Jan 2009 09:10:20 -0500
If you want to automate uploading a file to a web application,
AppleScripting Safari seems like a roundabout way to do it. The nice
thing about web apps vs dekstop apps is they're pretty much completely
automatable by default; you don't need a gui at all...
In any case, a "choose file" window is not "a Finder". The Finder
(there is only one) is the application that let's you manipulate files
when you're not running anything else. When you are running something
else (like Safari), it controls its own file choosers, and the Finder
has nothing to do with it.
So, to repeat: what is the goal? take a step back - don't talk abouit
Safari and Applescript and Finders. What are you trying to
accomplish? What's the big picture? Because there is almost
certainly an easier way.
On 1/19/09, Pooja <email@hidden> wrote:
> Hi,
> I am doing automation on an web application where I get Finder window on
> clicking an choose icon. So i want to do select file on that finder window,
> By specfiying path it should be able to locate the path and then select that
> file to upload.
>
> safari -->open file(cmd+o) brings a similar finder window and so if i can
> select a file on that finder, i would be able to do same for my test.
>
>
> I need to find that Finder window. (There could be many other Finder
> window opened)
> That finder window should able to select the file which as full path.
> Thats the aim.
>
> Thanks,
> pooja
>
> "Mark J. Reed" <email@hidden> wrote:
> I'm totally confused. Why are you going through Safari to get to the
> Finder? What is the goal?
>
> On Mon, Jan 19, 2009 at 5:23 PM, Pooja
> wrote:
>> Thanks Peter,
>>
>> I am looking to select a file , rather than opening it.
>> I was thinking if reveal would work in safari as it works for finder.
>> Actually i want to do selection of file from existing finder open in
>> safari.
>>
>> Do u have any idea to do that?
>>
>> Any Help will be appreciated
>>
>> Pooja
>>
>>
>> Peter Baxter
> wrote:
>>
>> Hi Pooja,
>> tell application "Safari" to open location
>> "file:///Users/YourUsername/Documents/"
>>
>> On 20/01/2009, at 3:53 AM, Pooja wrote:
>>
>> Hello All,
>> I open Finder thru Safari. That Finder always open in different start
>> directory. I want that to be fix whenever I open Finder. Is there any way
>> to
>> do that? Its basically how to move in directory where I want to
>> start search. I did not notice that reveal command does not work too. It
>> says it can not make it into type Item error.
>>
>> I want to open Finder thru Safari and choose the file I want with absolute
>> file path. Can someone help me to write that?
>>
>> Appreciate your help.
>>
>> Thanks,
>> Pooja
>>
>> _______________________________________________
>> 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
>>
>>
>> "For every complex problem, there is a solution
>> that is simple, neat and wrong." -H.L.Mencken
>>
>> Peter Baxter
>> 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
>>
>
>
>
> --
> Mark J. Reed
> _______________________________________________
> 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
>
>
>
>
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <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