11 Comments

  1. Posted June 12, 2009 at 12:59 pm | Permalink

    hi,

    wenns dir nur um die Auffindbarkeit via Spotlight gehen würde ... würde sich das ganze auch via Finder-Selections and Spotlight Tags im Get-Info Feld leicht halbautomatisch erschlagen lassen a la


    tell application "Finder"
    activate

    -- get selected items
    set fileList to selection

    -- Check if there is something selected in Finder
    if (count result) is 0 then
    try
    get (target of front Finder window) as alias
    on error
    choose folder with prompt "Set comments of files in this folder:"
    end try

    try
    set theFolder to result
    set fileList to every file of folder (result) as alias list
    end try
    end if

    -- Comment Dialog
    display dialog "Comment:" default answer "" buttons {"Overwrite", "Cancel", "Append"} default button 3 with title "Set Spotlight Comments"

    -- Save Result
    set userInput to the result
    set newComment to text returned of userInput

    -- If Overwrite
    if (button returned of userInput) is "Overwrite" then
    if (class of first item of fileList) is alias then
    set comment of every file of folder theFolder to newComment
    else
    repeat with thisFile in fileList
    set comment of thisFile to newComment
    end repeat
    end if
    else
    -- If Append
    repeat with thisFile in fileList
    tell thisFile
    if length of (comment as text) is not 0 then
    get ", " & newComment
    else
    get newComment
    end if
    set comment to (comment & result)
    end tell
    end repeat
    end if
    end tell

    Gruß
    fidel

  2. Hubi
    Posted June 13, 2009 at 10:33 am | Permalink

    Ja, auch möglich... Der Weg wäre mir aber zu speziell, die Keywords aus den PDF Tags kann jeder auslesen, deshalb mache ich ja pdfs draus. Spotlight Kommentare werden aber nicht in der Datei selben gespeichert.
    Was würde ich also machen, wenn ich auf einmal auf Windows 7 umsteige ;-)

  3. Posted July 30, 2009 at 12:57 pm | Permalink

    Gut!

  4. adam
    Posted November 24, 2009 at 2:44 pm | Permalink

    hiya. thanks for the tool. would really really appreciate it if you can repeat the instructions again in english :) thanks for the tool!

  5. bas_der_gruene
    Posted January 7, 2011 at 5:32 pm | Permalink

    Hallo hubi,

    ich habe gerade dein kleines Progrämmchen gefunden und für hilfreich befunden. Vorher hatte ich das: http://www.sybrex.com/products/macgui/infomanager/ gefunden aber für nicht hilfreich befunden. Macht nur murks mit irgendwelchen Sonderzeichen. Ein shellscript hab ich auch gefunden, was nach anpassung (stat verhält sich auf os x anders) auch lief: http://bloc.eurion.net/archives/2010/command-line-script-to-edit-pdf-file-meta-data/

    Nun stelle ich aber fest, dass Acrobat (hier Version 8) diese Informationen nicht anzeigt und stattdessen andere anzeigt. Weißt du was davon? Vielleicht hat das irgendwas mit einer anderen PDF-Version zu tun und unterschiedliche Arten wie Meta-Daten gespeichert werden? Irgendeinen Plan wie man sowas ergooglen kann?

    Vorschau wiederum zeigt die per pdftk (oder pdf MetaEdit) hinzugefügten Daten an...

    (und wo ich es gerade bemerke: Dein captcha-Plugin collidiert mit der WordPress-Schutzfunktion gegen doppelt Kommentare - geht man von der captcha-abfrage wieder zurück um etwas zu ändern meint wordpress den kommentar ablehne zu müssen)

  6. bas_der_gruene
    Posted January 7, 2011 at 6:03 pm | Permalink

    Nochmal Ich.

    Ich habe jetzt endlich herausgefunden, dass Acrobat xmp-Metainformationen für die pdfs nutzt und diese über die pdfformat-spezifischen setzt. xmp kann man wohl mit exiftool editieren oder mit BeCyPDFMetaEdit (win, läuft aber gut über wine) löschen. Falls du das irgendwann in PDF MetaEdit implementieren möchtest oder leser hier vor dem gleichen Problem stehen wie ich.

    Guten Gruß, bas

  7. Hubi
    Posted January 7, 2011 at 6:09 pm | Permalink

    Nun der Entwickler von pdftk schrieb da dazu..
    # Also, the author of pdftk (Sid Steward) has this to say about the
    # XMP stream:
    #
    # PDFs store this metadata is two places: the Info dictionary and
    # the XMP (RDF/XML) stream. Pdftk updates only the Info dictionary,
    # but newer versions of Acrobat/Reader defer to the XMP stream.
    #
    # I am currently working on new features for updating both the Info
    # dictionary and the XMP stream.
    #
    # One workaround might be to remove the PDF's XMP stream. You can do
    # this using pdftk, but it also removes bookmarks and other PDF
    # features. Run:
    #
    # pdftk mydoc.xmp.pdf cat output mydoc.no_xmp.pdf
    #
    # to burn of the XMP stream. Then maybe the viewer will fall back to
    # the Info dictionary with your updated data.

  8. Hubi
    Posted January 7, 2011 at 6:13 pm | Permalink

    könntest Du mir vielleicht mal ein solches PDF mit XMP-Informationen zukommen lassen?

  9. bas_der_gruene
    Posted January 7, 2011 at 6:47 pm | Permalink

    ist unterwegs

  10. Micke De Geer
    Posted October 3, 2011 at 4:30 pm | Permalink

    Hi,

    I tried your tool, PDF_MetaEdit, and got it to work with Pdftk. But I think I may be doing something wrong...when I change a meta tag, e.g. Title, I get strange characters:

    䠀☀䴀 儀㄀ ㈀ ㄀㄀

    I'll appreciate any help :)

    Best regards,
    Micke
    PS. Sorry - my German is not really up to speed..

  11. Hubi
    Posted October 20, 2011 at 12:01 am | Permalink

    Hi Micke,

    hm... did you add any special characters or does this even happen on normal strings like "abc"?
    Because pdftk has a really hard stand on working with special characters :-/

2 Trackbacks

  1. By hubionmac.com » Kleiner Bugfix in PDF MetaEdit on September 8, 2009 at 12:04 am

    [...] September, 2009 (00:04) | Software I Use, hubionmac.com, pdf | By: hubi PDF MetaEdit Ist ein kleines Tool, dass ich zum Editieren der Meta-Daten von PDFs nutze, damit diese leichter [...]

  2. By » Edit Pdf Metadata jsilence.org on January 25, 2011 at 4:04 pm

    [...] for a convenient tool to solve this I came across pdftk, which can be installed via MacPorts or other sources (Link target in german). pdftk allows you to manipulate a couple of aspects of a pdf file, among [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA:


8 − five =

Subscribe without commenting

  • Seite übersetzen:


    Paypal for Pizza:




  • Kategorien


  • Letzte Kommentare

    • Niklas: Vielen Vielen Dank! So klappt es!
    • hubi: Servus Niklas, ich habe mir den Quellcode noch einmal angesehen und habe nun unter 10.7.3 einen Weg gefunden...
    • Niklas: Klingt super das Script. Leider bekomm ich immer folgende Fehlermeldung: error “„Mail“ hat einen Fehler...
    • Jürgen: Hallo Hubi, beim Abfragen von Kennworten gibt es noch eine böse Falle: Das Format, in dem security antwortet,...
    • hubi: Am einfachsten Du öffnest im AppleScript-Editor mal das Funktionsverzeichnis (unter Ablage) von iTunes. Ein...