-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applescript #1645
Comments
I don't have 10.14 to test (I am on macOS 13), and I did not want to delete articles from my database, but these tests worked as expected for me :
and
|
|
Works here (macOS 13) Does opening of Vienna's dictionary in Script Editor works as expected ? |
Also: can you check if you have the same issue with Vienna 3.7.5 ? |
I have 3.8.4.
|
Problem confirmed. I will have a look.
|
Is this a regression in #1481? |
Quite possible for the first problem, which does not appear on 3.8.0_Beta1 For the second problem, I guess they were discrepancies in ViennaApp.scriptSuite / ViennaApp.scriptTerminology which were transposed in Vienna.sdef |
@barijaona: Problem 1 works differently for me. When I want to mark folder X as read but have folder Y selected, it marks both folders as read. This isn't a bug in AppleScript, but in Vienna itself, specifically this part here: vienna-rss/Vienna/Sources/Main window/ArticleController.m Lines 922 to 927 in 502f0de
It marks every article in As for problem 2, the Vienna scripting definition has no methods for the Article and Folder objects, only properties. The ViennaApp object does have methods and some of them take Article or Folder objects as arguments. This is indeed something that Vienna didn't have before. In this specific case, the |
This issue hasn't been updated in a while so we're going to mark it as |
Vienna's support for AppleScript is not very satisfactory:
The current implementation clearly needs some refactoring, but I think it's worth the effort. It might also help with Shortcuts support. Related: issue #1523 |
Describe the bug
Applescript seems not to work
To Reproduce
tell application "Vienna"
repeat with x in articles of folders
if date of x is less than (my (current date)) - 3 * days then delete x
end repeat
end tell
also not working:
tell application "Vienna"
mark all read in folder "Papierkorb"
end tell
Please complete the following information:
The text was updated successfully, but these errors were encountered: