Hi.
I wrote a "simple" macro to just open a file on my iCloud Drive.
Name of the file is "?" + the name of the front application + ".rtf"
Example: "?Keyboard Maestro.rtf"
Looks like you've got a trailing Return in your variable (the little symbol in the textual display at the bottom). Remove that and you should be good.
If you always want to open your RTFs in a certain application, you can choose that instead of "Finder" -- it's good practice to be explicit anyway, unless you want to use what you've set the file's "Open with..." in its "Get Info" box.
Also, unless you want to use it elsewhere in the macro, you don't need the "Appli" variable -- you can use the token directly in the "Open..." action and your macro can be a simple:
Thanks for your reponse.
I see the but I don't understand where it comes from ...
and I used the delete key to eliminate it, without success...
I also modified the open with Textedit as suggested.
That becomes more complicated: sometimes it works, sometimes not ...
And I dont see the difference
edit: in fact it works with some applications but not with all ???
I continue to obtain the message ... non-existent path ...
In the past, I tried to add a pause action between some steps but without success.
And the debugger don't give me a way to understand.
You typed it in the "Set Variable..." action's text field -- you've the line with your path, then a Return keystroke, then a blank line. Put the cursor in the field, down-arrow until it goes no lower, backspace until the cursor is just after the "f" of "rtf".
That might be a clue -- what applications does it work with, and which fail? Start with TextEdit -- I know that works here because I just tried it for a file called "?Keyboard Maestro.rtf" in a folder call "Notational Data MBA" in my iCloud folder.
Check your path very carefully -- easiest way is to go to the file you expect to open in the Finder then Control- or right-click it, hold down the Option key, select "Copy 'filename' as Pathname", and paste into a text editor, then compare that to what you have in KM.
As a note, sometimes iCloud removes the file locally and moves it online; that might be the reason why you get the “file not found” at the first time you run this flow, or in some instances when iCloud decides to again remove the local file.
Same problem again... but I have maybe a beginnng of explication !
I'm working with Devonthink (btw excellent software ).
When I create a new " ?... .rtf file " (example: "?Keyboard Maestro.rtf")
Devonthink names it "-Keyboard Maestro.rtf"
And of course my KM macro does'nt find it !
I posted a question on the DVT forum. I'll be back with an eventual response...