Advertisement
Advertisement
| 10.15.2008 at 03:22PM PDT, ID: 23818668 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: |
on open archive_root
global folder_name, folder_num, job_num_list, job_name_list, other_folder_name, other_folder_num, old_job_number, this_job_number, folder_number
set archive_root to archive_root as text
with timeout of 600 seconds
tell application "Finder"
set folder_list to the name of every folder of folder archive_root as list
set volume_name to (the first item in («event WaynTKii» archive_root given «class SEPl»:":")) as text
try
make new folder at disk volume_name with properties {name:"TEMP"}
end try
set folder_count to the count of items in folder_list
set job_num_list to {}
set job_name_list to {}
repeat with this_folder from 1 to folder_count
set folder_name to (item this_folder in folder_list) as text
set this_job_number to (the first item in («event WaynTKii» folder_name given «class SEPl»:"_") as text) as text
if (job_num_list contains this_job_number) then
set list_offset to the «event WaynFINL» job_num_list given «class ForS»:this_job_number
set other_folder_name to (item list_offset in job_name_list) as text
activate
beep 2
display dialog ("The following folders are the same job #" & return & folder_name & return & other_folder_name) with icon 2
display dialog "Name for folder" & return & folder_name default answer folder_name with icon 1
set folder_num to the text returned of result as text
display dialog "Name for folder" & return & other_folder_name default answer other_folder_name with icon 1
set other_folder_num to the text returned of result as text
set job_num_list to («event WaynRPLC» this_job_number given «class in »:job_num_list, «class with»:other_folder_num) as list
copy folder_num to the end of job_num_list
copy folder_name to the end of job_name_list
else
copy this_job_number to the end of job_num_list
copy folder_name to the end of job_name_list
end if
end repeat
repeat with thiss_folder from 1 to folder_count
set folder_name to (item thiss_folder in job_name_list) as text
set folder_number to (item thiss_folder in job_num_list) as text
set old_job_number to (the first item in («event WaynTKii» folder_name given «class SEPl»:"_") as text)
try
set the name of folder (archive_root & folder_name & ":" & (old_job_number & "_FONTS") as text) to (folder_number & "_FONTS")
end try
set the name of folder (archive_root & folder_name) to folder_number
end repeat
set folder_list to the name of every folder of folder archive_root as list
set folder_count to the count of items in folder_list
repeat with this_folder from 1 to folder_count
set folder_name to (item this_folder in folder_list) as text
set this_job_number to (the first item in («event WaynTKii» folder_name given «class SEPl»:"_") as text)
try
make new folder at folder (volume_name & ":TEMP:") with properties {name:folder_name}
end try
if folder (archive_root & folder_name & ":Control:") exists then
move folder (archive_root & folder_name & ":Control:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
if folder (archive_root & folder_name & ":Fonts:") exists then
move folder (archive_root & folder_name & ":Fonts:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
if folder (archive_root & folder_name & ":HotFolders:") exists then
move folder (archive_root & folder_name & ":HotFolders:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
if folder (archive_root & folder_name & ":System:") exists then
move folder (archive_root & folder_name & ":System:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
if folder (archive_root & folder_name & ":WebDownloads:") exists then
move folder (archive_root & folder_name & ":WebDownloads:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
if folder (archive_root & folder_name & ":WebUploads:") exists then
move folder (archive_root & folder_name & ":WebUploads:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
if folder (archive_root & folder_name & ":VPS-Sigs:") exists then
move folder (archive_root & folder_name & ":VPS-Sigs:") to folder (volume_name & ":TEMP:" & folder_name & ":")
end if
end repeat
beep 2
display dialog "Folder Moves Completed" with icon 1
end tell
end timeout
end open
|