- Registriert
- 15.06.16
- Beiträge
- 3
Hallo zusammen,
ich hab mir ein Apple Script gebastelt das mir Katalogbilder die in unterordnern liegen in tifs umspeichern soll und in Ordner ablegen soll. Nur jetzt geht das tif nur für den obersten Ordner, hört dann auf und die nächsten Ordner die dann interessant werden bearbeitet das droplet nicht.
Kann mir jemand helfen?

Es wäre sagenhaft wenn ich die Ordner nicht mehr einzeln auf das droplet ziehen müsste sondern den Ordner darüber.
hier mein script:
on open {input}
set theFiles to (getFilesRecursively(input, "jpg", "eps"))
--In Photoshop öfffnen und als tiff in Quellordner speichern:
repeat with oneFile in theFiles
tell application "Adobe Photoshop CS6"
set oneFile to oneFile as string
open file oneFile showing dialogs {never}
save document 1 as TIFF in (input as string) with options {class:TIFF save options, byte order:IBM PC, embed color profile:true, image compression:LZW, save alpha channels:false, save annotations:false, save image pyramid:false, save layers:false, save spot colors:false, transparency:true} appending lowercase extension --with replacing
close document 1 saving no
end tell
end repeat
--JPG's in Verzeichnis Altlasten verschieben tiffs in _tif verschieben
tell application "Finder"
make new folder in (input as string) with properties {name:"Altlasten"}
make new folder in (input as string) with properties {name:"_tif"}
set scheipegs to (document files of input whose name extension is in {"jpg", "eps"})
move scheipegs to folder "Altlasten" of input
set tif to (document files of input whose name extension is in {"tif"})
move tif to folder "_tif" of input
end tell
end open
on getFilesRecursively(fContainer, fExt)
tell application "Finder"
set recursiveFileList to entire contents of fContainer as alias list
set resultFileList to {}
repeat with aFile in recursiveFileList
if name extension of aFile contains fExt then
set resultFileList to resultFileList & aFile
end if
end repeat
end tell
return resultFileList
end getFilesRecursively
davor hatte ich das am anfang aber mit dem geht es auch nicht
ich hab mir ein Apple Script gebastelt das mir Katalogbilder die in unterordnern liegen in tifs umspeichern soll und in Ordner ablegen soll. Nur jetzt geht das tif nur für den obersten Ordner, hört dann auf und die nächsten Ordner die dann interessant werden bearbeitet das droplet nicht.
Kann mir jemand helfen?

Es wäre sagenhaft wenn ich die Ordner nicht mehr einzeln auf das droplet ziehen müsste sondern den Ordner darüber.
hier mein script:
on open {input}
set theFiles to (getFilesRecursively(input, "jpg", "eps"))
--In Photoshop öfffnen und als tiff in Quellordner speichern:
repeat with oneFile in theFiles
tell application "Adobe Photoshop CS6"
set oneFile to oneFile as string
open file oneFile showing dialogs {never}
save document 1 as TIFF in (input as string) with options {class:TIFF save options, byte order:IBM PC, embed color profile:true, image compression:LZW, save alpha channels:false, save annotations:false, save image pyramid:false, save layers:false, save spot colors:false, transparency:true} appending lowercase extension --with replacing
close document 1 saving no
end tell
end repeat
--JPG's in Verzeichnis Altlasten verschieben tiffs in _tif verschieben
tell application "Finder"
make new folder in (input as string) with properties {name:"Altlasten"}
make new folder in (input as string) with properties {name:"_tif"}
set scheipegs to (document files of input whose name extension is in {"jpg", "eps"})
move scheipegs to folder "Altlasten" of input
set tif to (document files of input whose name extension is in {"tif"})
move tif to folder "_tif" of input
end tell
end open
on getFilesRecursively(fContainer, fExt)
tell application "Finder"
set recursiveFileList to entire contents of fContainer as alias list
set resultFileList to {}
repeat with aFile in recursiveFileList
if name extension of aFile contains fExt then
set resultFileList to resultFileList & aFile
end if
end repeat
end tell
return resultFileList
end getFilesRecursively
davor hatte ich das am anfang aber mit dem geht es auch nicht
Anhänge
Zuletzt bearbeitet von einem Moderator: