WOW !!! I fell of my chair ! You are a genius !
thanks very much !!
I have a question and unfortunately, I found a bug
1- question - if I want to replace open URL with open File, Folder or Application action, do I have to make special changes to the XML apart from the application name and path variable ?
2- Bug - in Confirm macro details the path is truncated. This bug is intermittent, happens often but does not happen all the time and not necessarily related to the length of the file path. I have examples of file paths which are truncated and even longer file paths that worked .
What I did I checked that the path is intact in the clipboard at the moment it is copied from the menu.
Sorry for the trouble and thanks again.
This is the open File, Folder or Application action XML with Forklift as the application
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>ActionUID</key>
<integer>99964737</integer>
<key>Application</key>
<dict>
<key>BundleIdentifier</key>
<string>com.binarynights.ForkLift</string>
<key>Name</key>
<string>ForkLift</string>
<key>NewFile</key>
<string>/Applications/ForkLift.app</string>
</dict>
<key>IsDefaultApplication</key>
<false/>
<key>MacroActionType</key>
<string>Open1File</string>
<key>Path</key>
<string></string>
</dict>
</array>
</plist>
Thatβs happening because you're using a regex pattern designed to parse Markdown links, even though you already have the title and URL separated. Since the regex is no longer needed, you can simply disable it.
Just set the existing title and URL variables as the default values for the Instance__Title and Instance__URL fields in the Prompt for User Input action (as shown in the screenshot):
thank you!