[GastForen Archiv Apple iLife - Home Multimedia AppleSkript: In iPhoto Schlüsselworte auslesen und das Foto umbenennen

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Archiv - Archivierte Foren
Themen
Beiträge
Moderatoren
Letzter Beitrag

AppleSkript: In iPhoto Schlüsselworte auslesen und das Foto umbenennen

proxt
Beiträge gesamt: 59

27. Mai 2009, 14:08
Beitrag # 1 von 2
Bewertung:
(2564 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Ich möchte die Schlüsselwörter der Fotos auslesen und in den Namen einbinden. Z.B.
Vorher:
Name des Fotos Telefon, Schlüsselwörter: Arbeit, Technik, Kommunikation
Nachher: Name des Fotos:Telefon Arbeit Technik Kommunikation
Main Skript liest laut Event-Protokoll zwar Schlüsselworte aus, aber ich kann sie nicht in den Namen einbinden.

tell application "iPhoto"
set current album to photo library album
repeat with thisPhoto in (photos of current album)
get keyword of item 1 of every photo of current album as string
set vname to name of thisPhoto
set name of thisPhoto to vname & " " & keyword
end repeat
end tell

(Dieser Beitrag wurde von proxt am 27. Mai 2009, 14:09 geändert)
X

AppleSkript: In iPhoto Schlüsselworte auslesen und das Foto umbenennen

Stibi
Beiträge gesamt: 832

27. Jul 2009, 20:07
Beitrag # 2 von 2
Beitrag ID: #403251
Bewertung:
(2333 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Quick & Dirty (läßt sich sicher noch verfeinern....)
Code
tell application "iPhoto" 
set current album to photo library album
set n to count every photo of current album
repeat with x from 1 to n
set b to number of items of keyword of photo x of current album
if b > 0 then
set a to ""
repeat with y from 1 to b
set a to a & " " & name of keyword y of photo x of current album
end repeat
set vname to name of photo x of current album & a
set name of photo x of current album to vname
end if
end repeat
end tell


aber geht.

Gruß Stibi


als Antwort auf: [#397565]