• 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
Multiple IF conditions in one line & path to Users Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Multiple IF conditions in one line & path to Users Library
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: PDF to Tif
  • Next by Date: Re: Multiple IF conditions in one line & path to Users Library
  • Previous by thread: Re: PDF to Tif
  • Next by thread: Re: Multiple IF conditions in one line & path to Users Library
  • Index(es):
    • Date
    • Thread