• 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
Re: What makes AppleScript difficult
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What makes AppleScript difficult


  • Subject: Re: What makes AppleScript difficult
  • From: Peter Baxter <email@hidden>
  • Date: Thu, 6 Dec 2007 18:21:20 +1100

This is off topic, but I just wrote a script to create a folder with a given name inside a folder that didn't exist and another folder that didn't exist and the two enclosing folders were created. ( All AS!) I didn't know you could do that.

tell application "Finder"
--ReportSetup
if not (the folder "ReportSetup" of folder "LocalReports" of folder "Applications" exists) then make new folder at folder "LocalReports" of folder "Applications" of startup disk with properties {name:"ReportSetup"}
-- ReportsPrint
if not (the folder "ReportsPrint" of folder "ReportSetup" of folder "LocalReports" of folder "Applications" exists) then make new folder at folder "ReportSetup" of folder "LocalReports" of folder "Applications" of startup disk with properties {name:"ReportsPrint"}
end tell


--> created the folder Local Reports. I thought this impossible!

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden



We may go to the moon, but that's not very far. The greatest distance we have to cover still lies within us." Charles de Gaulle



Peter Baxter email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: What makes AppleScript difficult (From: "Gary (Lists)" <email@hidden>)
 >Re: What makes AppleScript difficult (From: Skeeve <email@hidden>)

  • Prev by Date: Re: What makes AppleScript difficult
  • Next by Date: Re: What makes AppleScript difficult
  • Previous by thread: Re: What makes AppleScript difficult
  • Next by thread: Re: What makes AppleScript difficult
  • Index(es):
    • Date
    • Thread