regex - Applescript to combine part of URL and clipboard contents - possible? -
I have a lot of information about ApplesScript, so I'm wondering what I want, this is also possible. Ideally, what I would like to do, is a script that can return the last part of the active Chrome window URL, top-most tabs, and combine with the contents of the clipboard. Something like this:
URL: "www.site.com/page/number_I_want" Desired result: "Number_ I_want - I want to show the text" I think some regex is required, but it Is it also possible? I'm hoping to make this part of a big Alfred workflow ... Thanks in advance!
clipboard content: "I want the lesson
Enter the active tab set of window 1 {TID, the text item Delimiter} to set the URL to "Text Chrome"} To set MyNumber, set the text item -1 of myUrl set text item delimiter and set your number to newString to myNumber & amp; "-" & amp; (Clipboard as text)
Comments
Post a Comment