Applescript question
Applescript question
- Subject: Applescript question
- From: "Betsy Ward" <email@hidden>
- Date: Fri, 4 Jun 2004 09:36:21 -0500 (EST)
Hi,
I have a question, I'm trying to get a mount network drives script to work
and am trying to put some commands from an applescript into a shell
script. The reason being that I can't get it to work in 10.3 using the
LoginHooks the way that it works in 10.2. So I'm planning on putting it
in the profile to run after each user logs in.
Here's what's in the apple script:
set username to do shell script "whoami"
mount volume "afp://server/" & username on server "server" as user name
username
mount volume "afp://server/folder" on server "server" as user name username
mount volume "afp://server/folder" on server "server" as user name username
my question is that if I put this in a shell script how do I separate the
different commands. For instance do I need to start each line with
osascript -e 'set username to do shell script "whoami"'
osascript -e 'mount volume blah....'
osascript -e 'mount .....'
Or can I do it all after one osascript -e command, like
osascript -e 'set username to do shell script "whoami"; mount volume
blah...; mount volume ....'
Does that make sense?
Thanks in advance for any input.
Betsy
_______________________________________________
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.