You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

AppleScript creation for use on Numbers


Good evening guys, I would need an Apple script to paste on Automator to create a quick action that allows me, on Numbers, to transform the formula present on a cell, in text format in that same cell. so the script must perform these steps:


1) double click on the cell


2) press the function symbol on the left


3) once you open that drop-down menu you have to select on "convert formula to text in cell).


A few months ago you already helped me with the opposite script to this that I am asking now, namely the text in the cell to be converted into an active formula And you succeeded, so now I am asking exactly the opposite, thank you. please guys



MacBook Air 13″, macOS 14.6

Posted on Sep 7, 2024 3:13 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 7, 2024 3:51 PM

tell application "Numbers"
	tell front document to tell active sheet
		tell (first table whose selection range's class is range)
			repeat with aCell in (get selection range)'s cells
				set theformula to formula of aCell
				set value of aCell to text 2 thru end of theformula
			end repeat
		end tell
	end tell
end tell



1 reply
Question marked as Top-ranking reply

Sep 7, 2024 3:51 PM in response to Yuri2302

tell application "Numbers"
	tell front document to tell active sheet
		tell (first table whose selection range's class is range)
			repeat with aCell in (get selection range)'s cells
				set theformula to formula of aCell
				set value of aCell to text 2 thru end of theformula
			end repeat
		end tell
	end tell
end tell



AppleScript creation for use on Numbers

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