• 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: 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.

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

  • Prev by Date: Re: ScriptingAdditions not found - SOLVED!
  • Next by Date: CPU factor
  • Previous by thread: Re: getting the date, next question
  • Next by thread: Re: getting the date
  • Index(es):
    • Date
    • Thread