• 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
Need help with script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help with script


  • Subject: Need help with script
  • From: Tim Rycroft <email@hidden>
  • Date: Mon, 20 Aug 2007 08:59:27 +0100
  • Thread-topic: Need help with script

Title: Need help with script
Hi,

I need some help with this script below. It was created by one of the members on this list and I am very grateful for it. I have one more question regarding this script... That is, am I able to copy a file from a central location on a server. I.e. An illustrator file and copy the file into “Design/Stage 1/RT 1/” and then rename the file to job number_ job name.

Thanks for your help!



property
subf_names : {"Design/Stage 1/RT 1/Psd_Eps_Tiff", "Design/Stage 1/RT 1/Resource", "Design/Stage 1/RT 1/PDF", "Design/Stage 2", "Based On", "Artwork"}
--
display dialog "Enter job name:" default answer "job name"
set j_name to text returned of result
repeat
   display dialog "Enter job number:" default answer "0"
    set j_number to text returned of result
   try
       if (j_number as integer) < 100000 and ¬
            (j_number as integer) > -1 then exit repeat
   on error
       display dialog "Error: enter an integer less than 100,000."
    end try
end
repeat
set
job_number to text -6 thru -1 of ("00000" & j_number & "_")
set temp_name to job_number & j_name

tell application "Finder"
    set main_folder to (make new folder at desktop with properties {name:temp_name}) as alias
end
tell

repeat with child in subf_names
   do shell script "cd " & quoted form of POSIX path of main_folder & "; mkdir -p " & quoted form of child
end repeat


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: using rsync
  • Next by Date: GoToNoGo
  • Previous by thread: Re: using rsync
  • Next by thread: GoToNoGo
  • Index(es):
    • Date
    • Thread