• 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: my first script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: my first script
      • From: Michael Grant <email@hidden>
References: 
 >my first script (From: Aaron Willems <email@hidden>)

  • Prev by Date: Re: Clip2Gif
  • Next by Date: [ANN] BAUG Meeting Changes
  • Previous by thread: my first script
  • Next by thread: Re: my first script
  • Index(es):
    • Date
    • Thread