Multiple IF conditions in one line & path to Users Library
Multiple IF conditions in one line & path to Users Library
- Subject: Multiple IF conditions in one line & path to Users Library
- From: Brett Conlon <email@hidden>
- Date: Wed, 14 Dec 2005 16:44:05 +1000
Hiya,
Is there a way to include 3 condition
statements in one if line?
The below is my best attempt but it
ain't workin'. If any one of the files are in the correct location it returns
"All files there":
if(not
(exists file FHPSA4) and
not
(exists file FHPSA3) and
not
(exists file FHPSCus) then
display dialog "Files Missing"
... do the moving stuff
else
display dialog "All files there"
... don't do anything
The code tests for the existence of
3 FreeHand Print Settings files required for later use in the script. If
any of them are not in the users local drive the statement will then copy
all of them from the Server to their correct place.
---------
Also, is there a way to set the path
to a users Library folder without stating the users folder name in the
path? For example, this will work on my Mac:
set
FHPSA4 to
"OSX STARTUP:Users:brett:Library:Application Support:Macromedia:FreeHand
MX:11:English:Settings:PrintSet:PDF Settings A4"
But it won't work on my designer's Macs
coz their Users folder name is "design" (coincidentally the hard
drive is named the same though).
Your help is most appreciated!!!
Cheers,
Cojcolds _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden