• 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: Transmit: manipulating transfer window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transmit: manipulating transfer window


  • Subject: Re: Transmit: manipulating transfer window
  • From: Neil Faiman <email@hidden>
  • Date: Mon, 22 Aug 2005 21:29:50 -0400

On Aug 22, 2005, at 1:07 PM, email@hidden wrote:

I just upgraded to Transmit 3, and I'm having trouble figuring out the syntax to get the bounds of a transfer window.

Start by opening the Transmit scripting dictionary in Script Editor. (Open Script Editor, choose File>Open Dictionary..., and select the Transmit application; or open Script Editor and just drag the Transmit application icon onto the Script Editor icon in the dock.)


Now browse around the dictionary for a while. The Standard Suite has a class "window" which is "contained by application". This sounds promising. Look at the "window" class, and we see that it has a "bounds" property, which is a bounding rectangle. Then look at the "application" class (in either the Standard Suite or the Transmit Suite), and see that it has a "window" element.

So start gently, and try this script:

    tell application "Transmit"
        bounds of front window
    end tell

and you get something like this result

    {737, 511, 1772, 1032}

Try moving the Transmit window and rerunning the script, to get an idea how to interpret the bounds. When you're ready, you can go from passively observing to actively modifying, with something like this

    tell application "Transmit"
        set bounds of front window to {20, 20, 600, 400}
    end tell

which, sure enough, changes the front Transmit window to a 600x400 window located at screen position (20, 20).

You should be able to take it from there.

Regards,

    Neil Faiman
_______________________________________________
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


References: 
 >Transmit: manipulating transfer window (From: email@hidden)

  • Prev by Date: Weird error reading files
  • Next by Date: Re: Finder Scripting
  • Previous by thread: Re: Transmit: manipulating transfer window
  • Next by thread: Re: Time to figure out what is going on... (results)
  • Index(es):
    • Date
    • Thread