Zum Hauptinhalt gehen

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

Applescript and handy automation

Kommentare

7 Kommentare

  • Leigh1
    I totally agree with you!

    Any software that prides itself in its efficient workflow needs to be extensively scriptable. C1 has always had pretty poor Applescript capabilities and to make things worse, there seems to be a bug in the newer releases that prevents the processing of more than one file through Applescript. Even Phase One's example processing script no longer works.

    I know Phase One probably doesn't see this an important issue, but for this reason alone I have had to switch my workflow over to Adobe software. Until the scripting capabilities of C1 are improved I have little use for the software in the majority of my projects.

    WF
    0
  • Benjamin1
    Hi Everyone.

    Sorry
    I was tired when I posted.

    Here is the rest of the script.
    Ill just carry on from the beginning of the line which was truncated.

    Cheers

    B

    *****COPY FROM HERE****

    --add each alias
    repeat with anAlias in myAliases

    --get the info we want from each alias
    tell application \"Finder\"
    set aname to name of anAlias
    set aPath to POSIX path of anAlias
    end tell

    --...and put each name and path into the fragment
    set sessionFragment to sessionFragment & itemHeader & \"Name\" & endKey & aname & endString & newKey & \"URL\" & endKey & \"file://localhost\" & aPath & endString & itemEnd
    end repeat

    --polish off the fragment
    set sessionFragment to sessionFragment & sessionFooter

    --return the fragment
    return sessionFragment

    end insertPaths

    --save the fragment to disk
    on saveFragment(sessionFragment)

    --lets save the fragment to /tmp
    set posixTempFile to \"/tmp/fragment.session\"
    set theFile to (POSIX file posixTempFile)
    open for access theFile with write permission
    --erase the previous fragment
    set eof theFile to 0
    write (sessionFragment as text) to theFile
    close access theFile

    return theFile

    end saveFragment
    0
  • krdzine1
    I'd like to use this approach for creating the Destination Presets. I have particular specs I'd like files to be output by a growing pool of photographers and would like to simplify the process of getting them to all use the same settings. If I could have a script that would create MY destination/output settings that would be amazing. I have some experience with applescript but have a hard time trying to decipher scripts some times... can you point me in the right direction... show me how to get C1 to create a new destination preset?

    Thanks.
    0
  • krdzine1
    If I want to modify the resulting name (Fragment) of the session in the script do I simply replace every instance of "fragment" with "new name"?
    0
  • Benjamin1
    Hi There,

    I've been working on new scripts for Capture One session management, but Im writing them in ruby instead of applescrtipt. (ruby is the bees knees)

    I've been taking the approach of building FULL session files (which are just .plists) and modifying the values so that they are useful to me.
    (you can specify output settings, favorite folders, process destinations etc)

    I've been a bit busy recently to update them and to be honest, I'll have to hunt around in my mess to find the one that works - but when I find it, I'll post it or a link to it.

    If you'd like to email me to prompt me along (I'm forgetful) then feel free.

    You can get me on
    ben at mondodigital d0t com d0t au
    0
  • Mark711
    To krdzine1,

    Try the script below. Just follow the directions at the top. This script uses UI scripting to create a new process destination using the variable you set in the top of the script.

    This forum truncats long messages so here is a link to the script.



    Let me know if you have any questions or comments.

    Good Luck,
    Mark
    0
  • Mark711
    To krdzine1,

    Here is a completed version. I think it may be just what you are looking for.



    Look at the Read Me for instructions.

    Regards,
    Mark
    0

Post ist für Kommentare geschlossen.