c1hzqzwa Posted August 20, 2022 Posted August 20, 2022 I create a workflow to quickly modify an URL. However, I got an unexpected newline character. I have no idea to fix it. Here is the log when I started debugger: ``` [18:56:35.082] Get Direct Link[Hotkey] Processing complete [18:56:35.085] Get Direct Link[Hotkey] Passing output 'https://www.dropbox.com/s/abcxzy/filename.txt?dl=0' to Run Script [18:56:35.211] STDERR: Get Direct Link[Run Script] query: https://dl.dropbxusercontent.com/s/abcxzy/filename_abcxzy.txt?dl=0 [18:56:35.215] Get Direct Link[Run Script] Processing complete [18:56:35.216] Get Direct Link[Run Script] Passing output 'https://dl.dropbxusercontent.com/s/abcxzy/filename_abcxzy.txt?dl=0 ' to Copy to Clipboard ``` Please take a look at the attached images.
vitor Posted August 20, 2022 Posted August 20, 2022 In the Run Script you’re using AppleScript or JXA, which always output a newline at the end. To remove it, use a Transform Utility to trim whitespace.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now