RE: ftp chokes my mac....
RE: ftp chokes my mac....
- Subject: RE: ftp chokes my mac....
- From: "Jan-Bultereys" <email@hidden>
- Date: Mon, 10 Jan 2005 10:33:13 +0100
- Thread-topic: ftp chokes my mac....
thanks christopher,
I understand what you're saying....
I will undoubtedly keep this in mind for my future scripting....
Thanks again for the tip.
jan
> ----------
> From: applescript-users-bounces+jan.bultereys=email@hidden on behalf of Christopher Nebel
> Sent: Friday, January 7, 2005 21:40 PM
> To: AppleScript Users
> Subject: Re: ftp chokes my mac....
>
> I'm not disputing your use of ftp(1) -- that's fine -- the issue is who
> you're telling to do it, i.e., is the "do shell script" command inside
> a "tell" block, and if so, then what application is being "told"?
> Telling an application to "do shell script" will block any further
> event processing in that application (which is not the same thing as
> sucking up all the CPU) until the command finishes. To sum up:
>
> tell application "Finder" -- not a good idea.
> do shell script ...
> end
>
> tell me -- better.
> do shell script
> end
>
> For best results (i.e., least interference with other applications),
> save your script as an application, which was what I meant by "set up
> your script as an application", and which you say you've already done.
> If you plan to use "do shell script" much, you should probably read
> <http://developer.apple.com/technotes/tn2002/tn2065.html>.
>
>
> --Chris Nebel
> AppleScript Engineering
>
> On Jan 7, 2005, at 12:29 AM, Jan-Bultereys wrote:
>
> > hi, christopher and gnarladious,
> >
> > to answer your question gnarladious : it is saved as an
> > applicaction.....
> > to ansvers your question christopher:
> > yes the ftp command is given via the command line:
> >
> > do shell script "" & filetosendpath_POLE & "; curl -T " &
> > stuff_name_POLE & " " & ftpPOLETEST & "" & stuff_name_POLE & ""
> >
> > Explanation: all names between & & are variables predefined in the
> > script...
> >
> > Christopher, I don't see an other solution to ftp (with user and
> > password) without using any software.
> >
> > What do you mean with set up your script as an application and then"
> > tell yourself "?
> >
> > best regards,jan
> >
> >
> >> ----------
> >> From:
> >> applescript-users-bounces
> >> +jan.bultereys=email@hidden on behalf of
> >> Christopher Nebel
> >> Sent: Thursday, January 6, 2005 20:20 PM
> >> To: AppleScript Users
> >> Subject: Re: ftp chokes my mac....
> >>
> >> On Jan 6, 2005, at 9:49 AM, Jan-Bultereys wrote:
> >>
> >>> I have made an interactive 'ftp-script" which is using the
> >>> curl-command on the terminal window.
> >>>
> >>> My problem is that the mac doesn't response on clicks made on the
> >>> desktop
> >>> as long as the 'ftp-script" is running.
> >>>
> >>> My question: How can I prevent that the "ftp-action" doesn't choke
> >>> the
> >>> mac.
> >>> Is it possible to let the 'script" or "ftp-action" run in the
> >>> background....or something like that?
> >>>
> >>> any idea is much appreciated.
> >>
> >> You didn't tell the Finder to "do shell script" the ftp step, did you?
> >> Because of how most applications implement their scriptability,
> >> telling
> >> an application to do a command will usually block any other operations
> >> until the command finishes. Ideally, set up your script as an
> >> application and then tell yourself.
> >>
> >>
> >> --Chris Nebel
> >> AppleScript Engineering
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> Applescript-users mailing list
> >> (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >> email@hidden
> >>
> >> 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:
>
> 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:
This email sent to email@hidden