lostreality
Aktives Mitglied
Thread Starter
- Dabei seit
- 03.12.2001
- Beiträge
- 10.095
- Reaktionspunkte
- 2.538
Brauch mal eure Hilfe für ein Scripting zur besseren Erstellung von Bildquellen.
OS X bietet ja in den Finderinformationen dieses schöne Feld "Quelle" in der die URL hinterlegt ist, dieses möchte ich nun für InDesign verwertbar einbinden. Nach vielem Testen bin ich soweit das ich weis was wohin muss, nur habe ich keine Ahnung wie ich das, am liebsten als Droplet oder Batch, umsetzen soll.
Es muss eigentlich nur ein Eintrag in den Metadaten kopiert und als andere Metadaten eingefügt werden und zwar das Feld
kMDItemWhereFroms zusätzlich als kMDItemAuthors letzteres kann ich nämlich in ID abrufen.
Hier der Eintrag den ich per mdls im Terminal für das Bild ohne gesetzten Autor bekomme:
Und hier mit in Photoshop gesetztem Autor:
Nun muss "nur" noch ein Droplet / Batch erstellt werden damit das ganze automatisiert abläuft. Hoffe einer kann helfen
OS X bietet ja in den Finderinformationen dieses schöne Feld "Quelle" in der die URL hinterlegt ist, dieses möchte ich nun für InDesign verwertbar einbinden. Nach vielem Testen bin ich soweit das ich weis was wohin muss, nur habe ich keine Ahnung wie ich das, am liebsten als Droplet oder Batch, umsetzen soll.
Es muss eigentlich nur ein Eintrag in den Metadaten kopiert und als andere Metadaten eingefügt werden und zwar das Feld
kMDItemWhereFroms zusätzlich als kMDItemAuthors letzteres kann ich nämlich in ID abrufen.
Hier der Eintrag den ich per mdls im Terminal für das Bild ohne gesetzten Autor bekomme:
Code:
MacBook-Pro:~ Toby$ mdls /Users/Toby/Desktop/gallery1_2256.jpg
_kMDItemOwnerUserID = 501
kMDItemBitsPerSample = 32
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2015-12-09 11:33:55 +0000
kMDItemContentModificationDate = 2015-12-09 11:33:55 +0000
kMDItemContentType = "public.jpeg"
kMDItemContentTypeTree = (
"public.jpeg",
"public.image",
"public.data",
"public.item",
"public.content"
)
kMDItemDateAdded = 2015-12-09 11:33:55 +0000
kMDItemDisplayName = "gallery1_2256.jpg"
kMDItemDownloadedDate = (
"2015-12-09 11:33:56 +0000"
)
kMDItemFSContentChangeDate = 2015-12-09 11:33:55 +0000
kMDItemFSCreationDate = 2015-12-09 11:33:55 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "gallery1_2256.jpg"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 262425
kMDItemFSTypeCode = ""
kMDItemHasAlphaChannel = 0
kMDItemKind = "JPEG-Bild"
kMDItemLogicalSize = 262425
kMDItemOrientation = 0
kMDItemPhysicalSize = 266240
kMDItemPixelCount = 2725248
kMDItemPixelHeight = 1208
kMDItemPixelWidth = 2256
kMDItemResolutionHeightDPI = 0
kMDItemResolutionWidthDPI = 0
kMDItemWhereFroms = (
"https://www.apple.com/macbook-pro/design-retina/images/fluidgallery/gallery1_2256.jpg"
)
Und hier mit in Photoshop gesetztem Autor:
Code:
MacBook-Pro:~ Toby$ mdls /Users/Toby/Desktop/gallery1_2256\ Kopie.jpg
_kMDItemOwnerUserID = 501
kMDItemAuthors = (
"https://www.apple.com/macbook-pro/design-retina/images/fluidgallery/gallery1_2256.jpg"
)
kMDItemBitsPerSample = 32
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2015-12-09 11:33:55 +0000
kMDItemContentModificationDate = 2015-12-09 12:32:33 +0000
kMDItemContentType = "public.jpeg"
kMDItemContentTypeTree = (
"public.jpeg",
"public.image",
"public.data",
"public.item",
"public.content"
)
kMDItemCreator = "Adobe Photoshop CS5.1 Macintosh"
kMDItemDateAdded = 2015-12-09 12:32:33 +0000
kMDItemDisplayName = "gallery1_2256 Kopie.jpg"
kMDItemDownloadedDate = (
"2015-12-09 11:33:56 +0000"
)
kMDItemEXIFVersion = "2.2.1"
kMDItemFSContentChangeDate = 2015-12-09 12:32:33 +0000
kMDItemFSCreationDate = 2015-12-09 11:33:55 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "gallery1_2256 Kopie.jpg"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 372177
kMDItemFSTypeCode = ""
kMDItemHasAlphaChannel = 0
kMDItemKind = "JPEG-Bild"
kMDItemLastUsedDate = 2015-12-09 12:32:33 +0000
kMDItemLogicalSize = 372177
kMDItemOrientation = 0
kMDItemPhysicalSize = 372736
kMDItemPixelCount = 2725248
kMDItemPixelHeight = 1208
kMDItemPixelWidth = 2256
kMDItemResolutionHeightDPI = 72
kMDItemResolutionWidthDPI = 72
kMDItemUseCount = 6
kMDItemUsedDates = (
"2015-12-08 23:00:00 +0000"
)
kMDItemWhereFroms = (
"https://www.apple.com/macbook-pro/design-retina/images/fluidgallery/gallery1_2256.jpg"
)
Nun muss "nur" noch ein Droplet / Batch erstellt werden damit das ganze automatisiert abläuft. Hoffe einer kann helfen