Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the date, next question



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.