• 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: getting the date, next question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the date, next question


  • Subject: Re: getting the date, next question
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 31 Dec 2003 12:06:48 -0600

At 12:04 -0500 12/31/2003, Simon Kidd wrought:

make new folder at folder "Documents" of folder "Toby" of folder "Users" of disk "PowerMac_HD" with properties {name:foldername}
...
I now want the script to move something into the new folder, but how do I refer to the new folder if I dont know its name? Something like:
______________________________________________________________________

Hello Simon,

Okay, Michelle showed you how to turn the "make new folder" event into a reference.

Now, since you're using the documents folder there is an easier way to refer to it (and many other commonly used folders):

set fldrNameStr to "A_New_Folder"
tell application "Finder"
set nf to make new folder at (path to documents folder from user domain) with properties {name:fldrNameStr}
end tell

Scope out "path to" in the Standard Additions osax dictionary.


Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: getting the date (From: Paul Berkowitz <email@hidden>)
 >Re: getting the date, next question (From: Simon Kidd <email@hidden>)

  • Prev by Date: Re: getting the date, next question
  • Next by Date: RE: getting the date
  • Previous by thread: Re: getting the date, next question
  • Next by thread: Re: getting the date, next question
  • Index(es):
    • Date
    • Thread