Jump to content

Maciej Swoboda

Member
  • Posts

    2
  • Joined

  • Last visited

Maciej Swoboda's Achievements

Helping Hand

Helping Hand (3/5)

2

Reputation

  1. Oh, I got caught by that! I thought that the "tinypng" in not part of the filename, but the command to run the script "tinypng" on the "panda.png" file. Thanks a lot. It works now and I am a bit ashamed. I am trying to use the workflow as part of my Hazel rule set.
  2. When I try to run the workflow by external trigger I get "Input file is empty" error, but the file is present in the Desktop folder. Can you help? I am a newbie to AppleScript. Thanks! maciek@Tiger-MS ~ % cd ~/Desktop maciek@Tiger-MS Desktop % ls panda.png maciek@Tiger-MS Desktop % /usr/bin/osascript -e 'tell application id "com.runningwithcrayons.Alfred" run trigger ¬ "compress" in workflow ¬ "com.alfredapp.tinypng" with argument ¬ (POSIX path of (path to desktop folder)) & "tinypng panda.png" end tell' The result: https://monosnap.com/file/xb7M5FnArE4V25jSmBzEvqPFa2a32M
×
×
  • Create New...