• 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: Applescript and FTP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript and FTP


  • Subject: Re: Applescript and FTP
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 04 Jan 2001 14:16:04 -0800

On 1/4/01 1:45 PM, "Richard 23" <email@hidden> wrote:

>> I personally find Interarchy's AppleScript support to be just about the best
>> when it comes to scripting FTP transfers. If you don't mind relying on an
>> application to get the job done, I would suggest you take a look at it. You
>> can find it on http://www.versiontracker.com.
>
> It is a little annoying that you can't specify which window you want to
> close.
> Close operates on the first window only. In fact window queries only
> operate
> on the front window. If you want to close window 2 without disturbing
> window
> 1 you're out of luck baby!

There's a clunky sort of workaround.

frontwindowrecord : returns the record for the front window
frontwindowrecord
Result : window -- the front window's information

and

Class window : a window
Properties:
bounds bounding rectangle [r/o] -- the bounds of the window
name string [r/o] -- the name of the window
position point [r/o] -- the position of the top left corner


So you can get the name of the front window.

If it's not the one you're looking for, you can then use one of those other
events beginning with 'show' to open or bring the one you want to the front,
then you can close it, and your real front window is still in front,
undisturbed.

--
Paul Berkowitz


References: 
 >Re: Applescript and FTP (From: Richard 23 <email@hidden>)

  • Prev by Date: Need help stopping an applescript
  • Next by Date: Re: Need help stopping an applescript
  • Previous by thread: Re: Applescript and FTP
  • Next by thread: Re: applescript-users digest, Vol 2 #187 - 15 msgs
  • Index(es):
    • Date
    • Thread