Re: getting the date, next question
Re: getting the date, next question
- Subject: Re: getting the date, next question
- From: Gnarlodious <email@hidden>
- Date: Wed, 31 Dec 2003 14:05:56 -0700
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.