Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#294708 - 08/03/2007 20:55 Good Applescript reference material
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
I knocked up a really simple bash script to mount a network drive and open the resulting folder. It does some checking like if the mount point currently exists and if it's already mounted. In total I probably spent 10 minutes writing it, which I thought was pretty good since I've not done any scripting in ages.

So, I need it to be runnable by idiots on Macs. Asking them to fire up a terminal and type stuff into it is not an option. It needs to be a desktop icon they click on. Applescript looks like it'll do the trick, however I've just spent 2 hours just trying to get it to check wether a folder exists and create it (currently failing on both counts). Is there any good resources out there? Can't find anything myself, it's all either way too complicated for an novice like myself to follow or doesn't cover the areas I need (checking files/folders, mounting drives etc.).

Currently my Applescript file has one line in it to simply call the old bash script. Ideally I've liked to do the whole lot in applescript.
_________________________
Cheers,

Andy M

Top
#294709 - 08/03/2007 21:08 Re: Good Applescript reference material [Re: andym]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I haven't AppleScripted since OS9, but the ScriptEditor app had all the documentation I needed. If you need more, try starting at MacScripter. The Wikipedia article has a load of links, too, including a WikiBook on AppleScript (which I haven't looked at).


Edited by wfaulk (08/03/2007 21:10)
_________________________
Bitt Faulk

Top