Move, copy, rename, zip,...
Move, copy, rename, zip,...
- Subject: Move, copy, rename, zip,...
- From: Thomas Thaler <email@hidden>
- Date: Thu, 4 Apr 2002 23:28:34 +0200
Dear AppleScripters
I'm new to this Scriptworld and have some troubles to start with a
special project.
the situation:
there are about 100 different logfile stored in about 30 folders.
The structure is like the example below.
Folder
|
------- Folder 1
| |
| -------Folder 1.1
| | |
| | -------File 1
| | |
| | -------File 2
| | |
| | -------File 3
| |
| -------Folder 1.2
| |
| -------File 1
| |
| -------File 2
| |
| -------File 3
|
------- Folder 2
|
-------Folder 2.1
| |
| -------File 1
| |
| -------File 2
| |
| -------File 3
|
-------Folder 2.2
|
-------File 1
|
-------File 2
|
-------File 3
Now File 1 and 3 of each folder needs to be copied with a new name into
ONE new folder.
This has to be done automatically on a ASIP Server every night between 4-5 am.
To get a list of the files in ONE folder is known. But how do I do that
with the structure above?
How can i find out, if the object is a folder or a file?
If I do the script below.....
tell application "Finder"
if (folder of (info for (choose folder))) then
beep
beep
end if
end tell
.... I'll get the following error in the event protokoll.
tell application "Finder"
choose folder
info for alias "Daten:Acrobat User
Data:Legal:"
--> Can't get folder of {name:"Legal", creation date:date "Montag, 25.
Februar 2002 8:02:13 Uhr", modification date:date "Montag, 25. Februar
2002 8:02:13 Uhr", icon position:{0, 0}, visible:true, size:2.6353E+4,
folder:true, alias:false, name extension:missing value, extension
hidden:false, package folder:false, file
type:"creator:"X:System:Library:CoreServices:Finder.app:", folder
window:{0, 0, 0, 0}}.
If anyone has some ideas, that would be thankfully taken into that project.
--
With the best regards
Thomas Thaler
Mac Supporter
Tel: +41 1 635 45 02
SMS: +41 79 513 67 24
email@hidden
www.zi.unizh.ch
University of Zurich
IT Services
Winterthurerstrasse 190
CH-8057 Z|rich
Switzerland
Secretary Office
Tel: +41 1 635 45 10
Fax: +41 1 635 45 05
_______________________________________________
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.