Re: my first script
Re: my first script
- Subject: Re: my first script
- From: Andrew Oliver <email@hidden>
- Date: Tue, 21 Jan 2003 16:32:53 -0800
Try telling the Finder to come to the front before trying to mount the
server. This is done with the simple addition of the 'activate' command:
tell application "Finder"
activate
open location "afp://at/name_of_server"
end tell
Sometimes you want actions to happen in the background, so most apps will
not automatically come to the front before executing the commands.
Andrew
:)
On 1/21/03 4:15 PM, "Aaron Willems" <email@hidden> wrote:
>
I'm a newbie to this. I don't know if I will be mocked but here it
>
goes. I want to write a script that I can save as an Application. It's
>
job is to access our file server, and bring up the log in menu without
>
having to access the go menu to select connect to server. Here is what
>
I have written so far. It seems to work but it brings the log in menu
>
to the back of all open windows and applications. I need it pop up in
>
front of all the active open windows and applications.
>
>
tell application "Finder"
>
open location "afp:/at/name of server:*"
>
end tell
>
>
Thanks
>
>
Aaron Willems
>
Network Administrator
>
Lieberman Productions
>
email@hidden
>
_______________________________________________
>
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.
_______________________________________________
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.