Skip to main content
1-Visitor
September 4, 2015
Solved

Anyway to copy path to clipboard as text, not as element?

  • September 4, 2015
  • 1 reply
  • 3073 views

I'm trying to get a macro in Arbortext Isodraw that copies the path and filename of the active document to clipboard.

I've tried combinations of copy and path and StripExt but it usually ends up in copying the text as an element, instead of to the clipboard.

I might try to do a text log that outputs the active doc path and filename, but it would be nice if there was an easier way!

Best answer by thendricks

I'll refer to this as a hack.

Macro Clipboard

    Launch "C:\WINDOWS\system32\cmd.exe" "/c Start /Min echo " + StripExt(ActiveDoc.Path) + "^|clip"

End Macro

1 reply

12-Amethyst
September 4, 2015

I'll refer to this as a hack.

Macro Clipboard

    Launch "C:\WINDOWS\system32\cmd.exe" "/c Start /Min echo " + StripExt(ActiveDoc.Path) + "^|clip"

End Macro

ttea1-VisitorAuthor
1-Visitor
September 4, 2015

It works!

I tried it at first, and it didn't work. But I realized there is a problem when the Folder Path has spaces in it.

Currently looking up how to deal with that!

Edit:

It simply just works. Thanks!

12-Amethyst
September 4, 2015

Glad it worked!