Hi,
I have build a simple password manager, in the below python file, however i can't set it to the clipboard when i run the file.
but my basic question is how to print a string from a python file, when running a workflow, with a python script
How do i do that?
Best Regards
Jens
def main():
result = str(reduce(go, range(20), '')) # an example of the print would be ;691i1A3ny`92+"7ltB9%
print(result, end='')
if __name__ == '__main__':
try:
sys.exit(main())
except Exception as err:
#from traceback import format_exc
# log traceback to Alfred's debugger
#log('[ERROR] %s', format_exc())
# show error message in notification
#notify('Execution Failed', str(err), True)
sys.exit(print("error"))