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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-2009, 01:37 PM
Junior Member
 
Join Date: Oct 2007
Posts: 23
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, 02:57 PM
Colorblind's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Montreal, Qc, Canada
Posts: 208
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, 03:51 PM
Junior Member
 
Join Date: Oct 2007
Posts: 23
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, 04:11 PM
Member
 
Join Date: Oct 2007
Location: New Rochelle, NY
Posts: 57
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
Job Postings from JobsTheyWant
Managed Print Services Sales Executive at Meredith Corporation in Des Moines, Iowa
Key Accounts Technical Color Mgmt Specialist at GMG Americas in Hingham, MA
Account Manager - Commercial Sales at NewPage Corporation in Southeast ( Charlotte, Atlanta, Jacksonville )
Account Manager-Commercial Sales at NewPage Corporation in Northeast (New York, Baltimore, Washington)
Account Manager Commercial Sales at NewPage Corporation in Midwest (Chicago,Dallas,Kansas City, Minneapolis
Services Business Development Manager at Electronics for Imaging in Foster City
Technical Sales Representative at Allied Pressroom Products in Illinois/Minnesota/Wisconsin
Software Engineer - Print Specialist at Mimeo.com in Memphis, TN
WhatTheyThink.com Latest Industry News
Print CEO: Premier Print Holdings, operating as Premier Graphics, in liquidation
Océ named "Green Reprographer of the Year" 3rd time
Print CEO: Disrupting the Power of Print
Two more Q.I. press controls products added to patent infringement case
Kodak introduces TRILLIAN SP Thermal Plates
Roland DG to showcase new technologies at Sign and Digital UK 2010
HP issues call for entries in HP Indigo Digital Printing Contest
Going Green: Congratulations to the latest SGP printer: Coating Excellence International
2010 call for nominations for education excellence awards
Enfocus brings innovative solutions to Ipex 2010


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