Go Back   PrintPlanet.com > Information Technology > Mac Help Desk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-2009, 12:37 PM
Junior Member
 
Join Date: Oct 2007
Posts: 20
Default Problem with applescript

I am attempting my first applescript and have come across a problem. I am trying to create a folder and have that folder take on the name of the current date. Line follows

make new folder at folder "Customer" of folder "untitled folder" of folder "Desktop" of folder "marjutpoillucci" of folder "Users" of startup disk with properties {name:{theDate to current date}}

It makes the folder but will not put the date in as a name

help Please
Thank you
Reply With Quote
  #2 (permalink)  
Old 01-06-2009, 01:57 PM
Colorblind's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 156
Default

This worked for me:

set my_date to date string of (get current date)
set my_hours to hours of (get current date)
set my_minutes to minutes of (get current date)
set folder_name to my_date & "_" & my_hours & "h" & my_minutes
tell application "Finder"
activate
make new folder at folder "Customer" of folder "untitled folder" of folder "Desktop" of folder "marjutpoillucci" of folder "Users" of startup disk with properties {name:folder_name}
end tell


If you need advice from real good AppleScript geeks, go to Applescript and Scripting Resources @ MacScripter
__________________
Better train people and risk they leave - than do nothing and risk they stay.
Reply With Quote
  #3 (permalink)  
Old 01-06-2009, 02:51 PM
Junior Member
 
Join Date: Oct 2007
Posts: 20
Default

Colorblind
thank you that worked perfectly
I will be sure to check out the website also
thanks again
Reply With Quote
  #4 (permalink)  
Old 01-06-2009, 03:11 PM
Member
 
Join Date: Oct 2007
Location: New Rochelle, NY
Posts: 41
Send a message via Skype™ to PrePress Guru
Default

Mac Scripter is a fantastic resource.
It helped me create an applescript that lets me use my filemaker job tracing system to automatically populate a quickbooks invoice.
The time saved is amazing and to think i did it once by hand.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Sponsors


WhatTheyThink.com
Quad/Graphics Achieves LEED Certification for Sussex, Wis Plant
Workflow Management Divests United Envelope and Freedom Graphic Services
Printing Industries of America and manroland elevate partnership
New Web Offset VP of Sales and Service at KBA
printMAX acquires consumables business of Planet Media
Limo Labels purchases two ROTOCONTRO finishing machines
DMX Direct Turns to GMC Software Technology
PrintPlanet: Do Printers Believe in Continuous Improvement?
Wolverine Printing acquires Spectrum Graphics
IGI Seminars look at Online and Social Media Marketing


Print CEO
Links, information, analysis and commentary from various industry resources.

WhatTheyThink's Speakers Bureau
Need a speaker for your open house, conference, or special event?

WhatTheyThink's Consulting Services
Business Strategy, Workflow Integration, Sales & Marketing, Custom Research