User Name
Password
AppleNova Forums » Programmer's Nook »

Basic Applescript Question


Register Members List Calendar Search FAQ Posting Guidelines
Basic Applescript Question
Thread Tools
sbert
 
 
2007-05-11, 12:25

Anyways, I'm new to this forum and applescript and have a quick question. I wrote a script to automount my network drives on login with my macbook and it works fine and all, but is there anyway to suppress the error message I get when I am not on my local network. The script I wrote is just 2 mount volume "...." statements. I'm guessing I have to add some if statement to check if the drives are available, but not quite sure how to go about that. Thanks for any help



-sbert
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2007-05-11, 12:40

Welcome, sbert!

I don't know much about AppleScript, but I imagine it would be helpful to the other gurus for you to post your script for review. (And be sure to put the code here in [code][/code] blocks!)

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
sbert
 
 
2007-05-11, 13:39

The script is simply:

Code:
mount volume "cifs://MSHOME2;ANDY@ANDYDESKTOP/NETWORK DRIVE" mount volume "cifs://MSHOME2;ANDY@ANDYDESKTOP/REMOTE STORAGE"
saved as an application that runs on startup.
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
AppleScript controlling iTunes Music Store? nassau Programmer's Nook 0 2006-05-17 08:28
Basic PHP / mySQL question Moogs Programmer's Nook 15 2005-11-19 16:56
Important iBook Question Robo Apple Products 9 2005-11-03 03:16
Ram & Superdrive Question (Powerbook) Fooboy General Discussion 2 2005-02-21 22:23
My first applescript, final touches? Koodari Genius Bar 3 2004-09-08 12:46


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 02:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova