how to add the file path to spreadsheet

How can I add the spreadsheet file name to mt spreadsheet


MacBook Pro 13″, macOS 10.14

Posted on Oct 4, 2022 7:01 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 4, 2022 7:57 AM

In Shortcuts app (in Applications > Utilities) create a shortcut like this:



This is done by dragging the Run AppleScript in, replacing whatever is in it with this:


tell application "Numbers" to set thePath to POSIX path of ((front document's file) as text)
set the clipboard to thePath



The click somewhere in the document, run the shortcut, and paste the path wherever you want it.


SG

2 replies
Question marked as Top-ranking reply

Oct 4, 2022 7:57 AM in response to Ralf-F

In Shortcuts app (in Applications > Utilities) create a shortcut like this:



This is done by dragging the Run AppleScript in, replacing whatever is in it with this:


tell application "Numbers" to set thePath to POSIX path of ((front document's file) as text)
set the clipboard to thePath



The click somewhere in the document, run the shortcut, and paste the path wherever you want it.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to add the file path to spreadsheet

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.