RE: Make Fetch Windows by shortcut call
RE: Make Fetch Windows by shortcut call
- Subject: RE: Make Fetch Windows by shortcut call
- From: email@hidden
- Date: Thu, 23 Oct 2003 14:41:47 -0400
- Priority: normal
Hi Dan,
>
I9m trying to 3make new transfer window2 in Fetch 4.0.3 (OS
X) using a
>
shortcut name.
If you know the shortcut (by index) that you want to open,
you could do something like this:
-------------------
tell application "Fetch 4.0.3"
open shortcut 1 of shortcut window 1
end tell
------------------
or if you'd like to view all your 'shortcuts' you could run
this to get a list of their names:
-----------------
tell application "Fetch 4.0.3"
get name of every shortcut of shortcut window 1
end tell
-----------------
>
Also, anyway to set a variable to reference the window.
3Set MyWindow to
>
make new transfer window....2 doesn9t work. Sure would be
nice to manage
>
multiple windows in Fetch but all I see is 3Window 12
It looks like you'll have to create a new transfer window
each time. Just use your shortcut info (and you'll have to
key in your password, so be careful that no one can access
this script and get your password. If you'll be giving it
to other people, you'll probably want to save the script as
run-only). Here's some code that opens a new window of
shortcut 1 each time it's run (watch out for the email
wrapping some of the code):
-------------------
tell application "Fetch 4.0.3"
set sData to a reference to shortcut 1 of shortcut window 1
make new transfer window at beginning with properties
{hostname:(sData's hostname) as string, userid:(sData's
userid) as string, password:"put your password here",
initial directory:(sData's path) as string}
end tell
-------------------
Hope this helps.
Jay
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.