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



Entity Simon Kidd spoke thus:

> set foldername to days_date
> tell application "Finder"
> activate
> make new folder at folder "Documents" of folder "Toby" of
> folder "Users" of disk "PowerMac_HD" with properties {name:foldername}
> reveal result
> end tell

I probably say something like:
(don't forget to unwrap these lines to run the script)


set newFolder to " New folder" -- or whatever string

tell application "Finder"
activate
set folderPath to (folder "Documents" of home) as alias
make new folder at folder folderPath
set the name of folder ((folderPath as string) & "untitled folder") to
newFolder
set folderPath to (folderPath as string) & newFolder
open alias folderPath
end tell


Where folderPath is the path to your folder. You can see there are no
disknames or such here, it will run on any machine. Strive to make your
scripts portable.

--Gnarlie
_______________________________________________
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, 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.