• 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: Use of 'path to ... folder creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of 'path to ... folder creation


  • Subject: Re: Use of 'path to ... folder creation
  • From: kai <email@hidden>
  • Date: Fri, 6 May 2005 22:04:23 +0100


On Friday, May 6, 2005, at 08:55 pm, Dennis Jones wrote:

Can someone give me an example of how to specify a folder to use and
create the folder if it does not exist.

My script uses ~/my-home/tmp to store a temporary file. I need the
script to create the tmp folder if it does not exist. From reading the
'path to' dictionary entry, it looks to me as if it could take care of
this for me.

Works here, Dennis. Try:

set tmpFolder to path to temporary items

or:

set tmpFolder to path to "temp"

---
kai

_______________________________________________
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


References: 
 >Use of 'path to ... folder creation (From: Dennis Jones <email@hidden>)

  • Prev by Date: Non-character keystrokes
  • Next by Date: Re: Script as internet helper protocol in tiger
  • Previous by thread: Use of 'path to ... folder creation
  • Next by thread: Re: Use of 'path to ... folder creation
  • Index(es):
    • Date
    • Thread