Jump to content

Michelle

Member
  • Posts

    2
  • Joined

  • Last visited

Michelle's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Yes I changed it: import sys px, vw = map(float, sys.argv[1].split('/')) result = (px/vw) * 100 if result == int(result): sys.stdout.write('%d' % result) else: sys.stdout.write('%.1f' % result) But still do not know, why I cannot have 2 arguments, it only works with one.
  2. Hi all, Love Alfred (v4.3.2 [1221]) but I tried a long time to calculate px to vw with an alfred workflow (before2-3). Script is working but my {query} in the copy to clipboard is always empty. But if I have only one argument and split it, then it is working (after2). But it is a little bit strange, is there a solution with 2 args? Thank yo so much!
×
×
  • Create New...