Jump to content

JolinM

Member
  • Posts

    65
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by JolinM

  1. Hi, I really feel like a dumb dumb, but I can't get my thing to run.

    I've been exploring the Getting Started workflows, the Documentation, but I think what I'm asking is too basic to be found there…

     

    I have a script that works. It currently uses a specific file:

    imageprep -s /Users/jolinmasson/Desktop/SOURCE.jpeg -d /Users/jolinmasson/Desktop/ -r 300 -f tif

    I want to run it with the Selection in Finder Automation action.

    How do I connect the two to make that happen?

     

    Thanks!

  2. Hi all, I tried building an Automator or Shortcut or Alfred workflow and failed each time 😞.

     

    My goal:

    1. convert images to TIFF

    2. change the resolution of the TIF to 300 DPI (either with sips or imageprep [?])

    3. move source file in a subfolder called Archive.

     

    I'm able to do step 1/2 with this shell script

    imageprep -r 300 -f tif

     

    But I don’t know how to do the rest… and / or get the selected files in the folder.

    I also tried building a workflow with Alfred Automations

     

    I think I'm turning in circle in my living room now. Any insight would be appreciated! 😅

  3. On 1/4/2022 at 9:30 PM, TheThunderChimp said:

    This does not seem intended, anyway to get the definition directly?

    Bonjour @TheThunderChimp,

     

    Mon script est un simple AppleScript qui va comme suit:
    My script is a simple Applescript that goes like this:

    on alfred_script(q)
      tell application "Antidote 9"
        lance dictionnaire mot q
      end tell
    end alfred_script

    Autant que je sache, c’est la limite d’interaction qu’Antidote 9 possède. @AntidoteConnect aurait peut-être plus d’éclaircissement?

    As for as I know, it’s a limit that Antidote 9 has. Maybe AntidoteConnect will be able to show us some light.

  4. Hi there, I played a bit with some of the workflow here, and they didn’t really did it for me. I created this one, inspired by this Envatotuts.

     

    The workflow creates predetermined folders.

    https://www.dropbox.com/s/q3l16bwzac02fcm/Create folders 0.5.alfredworkflow?dl=0

    In this case, it will creates:

    _archives
    _ressources
    Links
    Export
    > _archives

     

    My issue is that the script will fail if my source folder has spaces in it’s name.

     

    Here’s the code:

    myPath=$(osascript -e 'try' -e 'tell application "Finder"' -e 'set this_folder to (the target of the front window) as alias' -e 'set this_folder to POSIX path of this_folder' -e 'return this_folder' -e 'end tell' -e 'end try' -e 'set this_folder to POSIX path of (path to desktop)' -e 'return this_folder')
    
    cd $myPath
    mkdir _archives
    mkdir _ressources
    mkdir Links
    mkdir Export
    cd Export
    mkdir _archives

    Any thoughts?

  5. Hi, I am trying to paste the query in a text document (Antidote 10) to be corrected.

    The problem I encounter is that the diacritics aren't preserved.

     

    Imput is:

    pourquoi les éléphants ne fonctionnent pas à côté

     

    Output is:

    pourquoi les ealeaphants ne fonctionnent pas aa coatea

     

    Current AppleScript goes like this:

    tell application "Antidote 10"
    	activate
    	new document
    tell application	"System Events" to keystroke ("{query}")
    end tell
    tell app "System Events" to keystroke "k" using command down

     

    T

    hanks!

×
×
  • Create New...