Re: Finder thru Safari
Re: Finder thru Safari
- Subject: Re: Finder thru Safari
- From: Pooja <email@hidden>
- Date: Tue, 20 Jan 2009 10:39:49 -0800 (PST)
The goal is to upload a file via a web interface on safari.
steps to upload file:
1. login to web page
2. click upload button
3. choose file4. upload done.
If i want to choose file i want to navigate to a path and then choose as per requirement .
The problem is how to choose file from that choose window. How to navigate to any path on the choose window with automation.
i understand that safari has nothing related to finder.
the choose window is similar to
1. Go to Safari.
2. Open file.
3. check the window opened.
Even if the problem is round about.
How can i upload a file through web interface through applescript ?
Thanks
Pooja
"Mark J. Reed" <email@hidden> wrote:
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 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" 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
http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
>
>
>
>
--
Sent from Gmail for mobile | mobile.google.com
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