AppleScript problem after last silent security update

For months an AppleScript in one of my documents has worked perfectly. As I only know RagTime as a scriptable and recordable app I can only describe it in this context, although the problem is clearly not relating to this app. To track the problem I have created a new document containing only a spreadsheet named „Daten“ which I want to export as Excel-document to my desktop. The script in my document is consisting of more steps. But I was able to isolate the command creating the trouble and have reproduced the problem with a simple experiment. I have recorded the export-command with ScriptEditor. The resulting script (with the correct user name, of course) is:


tell application "RagTime 7"

activate

save table "Daten" of document 1 in alias "Macintosh HD:Users:Username:Desktop:Daten.xls" converting to "Excel-Dokument"

end tell


This is exactly the same as in the script which I have used without problems many times. After clicking the hammer I can successfully execute the recorded script exactly once. A second attempt (independent of deleting the saved document beforehand or not) results in the error message:

The same error message is also shown at the bottom of the script window. It is obvious that it cannot be a problem of the RagTime-app because

  • I have used the script in my document for months and there was no app-update or -upgrade since its last successful use early last week.
  • The recorded script can be used successfully - it fails only when executed a second time.

My suspicion is, that the last macOS „silent security update“ (distributed last week) causes the problem.

MacBook Pro 14″, macOS 15.4

Posted on Apr 8, 2025 10:30 AM

Reply
5 replies
Sort By: 

Apr 8, 2025 11:57 AM in response to TomKa

TomKa wrote:

I am not an experience scriptor. Hence I can accept the advice. However:
– as I have said: in my experiment I have tried to delete the file stored by the first execution before making the second attempt. The second attempt has nevertheless failed.
– using my document with the full script has always worked, independently of deleting an existing file with that name beforehand.

Perhaps the problem is in the RagTime 7 app. You and I both were thinking in terms of straightforward file saving behaviour. But I can assure you that nothing of the sort exists. Saving a file in most apps is a convoluted process of creating a temporary folder, saving a new copy of the file therein, then swapping out the new file for the old, and then deleting the temporary folder.


Furthermore, after doing that, the "document" is assumed to then be represented by the saved file. I think you are attempting a save from file A to file B.xlsx. Then you attempt that again and it fails. But the second time, it isn't trying to save A to B.xlsx. It is trying to save B.xlsx to B.xlsx, which may or may not succeed.


It is always possible for an app to simply create a new file with data at a given location. That's what you are assuming. But in the modern world, all architectures are Rube Goldberg architectures.


You can try to debug the script and see what RagTime 7 itself is doing when it saves this document. You might get a more meaningful error message. Maybe there is an "export" command you should be using instead.


If all else fails, contact RagTime 7 support. They claim that their product runs "flawlessly" on macOS Sequoia. In situations like this, when an app like RagTime doesn't work on macOS, most people will ask, "what's RagTime?" That will tell you where the problem lies. If it is a macOS problem that affects 80 million people, then it's Apple's problem to fix. But if it only affects RagTime users, then it's RagTime's problem to fix. Such is the state of the world today.

Reply

Apr 17, 2025 8:36 AM in response to etresoft

This was not the problem. The script has always worked independently of the presence or absence of a file with the same name. An expert at RagTime found a solution which is working perfectly:


tell application "RagTime 7"

activate

save table "Daten" of document 1 in file /Users/Username/Desktop/Daten.xls" converting to "Excel-Dokument"

end tell


Using / instead of : in the hierarchy and „file“ instead of „alias“ makes the difference.

Reply

Apr 8, 2025 7:45 PM in response to TomKa


TomKa (author)

Perhaps if you may mention the newest Apple macOS update

to the developer from the point of what was changed and the

listed bits that are truly different going forward, they may fix it.


This document from Apple Support was included as link from

their Apple security releases - Apple Support but is separate.


"This document describes the security content of macOS Sequoia 15.4."

The linked item found within has related bits of interest:

macOS Sequoia 15.4 • macOS Sequoia • 31 Mar 2025


Might I suggest if a deeper look for any other ideas, might

make a better upgrade to their software. An action needs

address; or, if Maker's product is pending a newer release.


Yet sometimes my ideas get far ahead; or just off-course!

While I'm less affluent &/or poorer; in no rush to upgrade.


Reply

Apr 8, 2025 10:38 AM in response to TomKa

TomKa wrote:

My suspicion is, that the last macOS „silent security update“ (distributed last week) causes the problem.

Maybe it merely "exposed" an existing problem.


Your script is clearly wrong. What happens when the file "Daten.xls" already exists? This is an error condition. When you don't explicitly handle such error conditions, the behaviour is "implementation defined" and that implementation can change at any time, with no warning.


If the "Daten.xls" file already exists, then delete it first. Then save the new file.

Reply

Apr 8, 2025 10:59 AM in response to etresoft

I am not an experience scriptor. Hence I can accept the advice. However:

– as I have said: in my experiment I have tried to delete the file stored by the first execution before making the second attempt. The second attempt has nevertheless failed.

– using my document with the full script has always worked, independently of deleting an existing file with that name beforehand.

Reply

AppleScript problem after last silent security update

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