QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

[I] Script is loaded, but cannot be executed.

Open wpoet opened this issue 1 year ago • 8 comments

Expected behaviour

I have a script loaded in Scripting. It shows "... valid". I want to start this script, add a shortcut to it, etc.

Actual behaviour

Other than in the Scripting window, the script does not appear anywhere in the the program. I cannot use it.

Steps to reproduce

  1. ... Load a script in "Scripting"
  2. ... Validate
  3. ... Where to start it????

Relevant log output in the Log panel

Expand
[10:12:17] [scripting] loading script file: /home/wp/.local/share/PBE/QOwnNotes/scripts/newNote.qml
[10:12:17] [scripting] loading script file: /home/wp/.local/share/PBE/QOwnNotes/scripts/newNote1.qml
[10:12:17] [scripting] Hello world!
[10:12:17] [status] 🔧 The scripting engine was reloaded
[10:13:34] [debug] on_noteTreeWidget_itemSelectionChanged
[10:13:34] [debug] setCurrentNote - 'note': Note: <id>2 <name>"2025-01-19 fastmail polzleitner" <fileName>"2025-01-19 fastmail polzleitner.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': true - 'updateSelectedNote': false
[10:13:35] [debug] added to history: NoteHistoryItem: <noteName>"2025-01-19 fastmail polzleitner" <noteSubFolderPathData>"" <cursorPosition>179 <relativeScrollBarPosition>0
[10:13:36] [debug] on_noteTreeWidget_itemSelectionChanged
[10:13:36] [debug] setCurrentNote - 'note': Note: <id>1 <name>"2025-05-05 postgrey for nicksoftware" <fileName>"2025-05-05 postgrey for nicksoftware.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': true - 'updateSelectedNote': false
[10:13:36] [debug] added to history: NoteHistoryItem: <noteName>"2025-05-05 postgrey for nicksoftware" <noteSubFolderPathData>"" <cursorPosition>353 <relativeScrollBarPosition>0
[10:15:08] [debug] cloudConnection: CloudConnection: <id>1 <name>"Default" <serverUrl>"" <username>"" <accountId>"" <priority>1
[10:15:46] [debug] updatePanelMenu - 'updatePanelMenu'
[10:15:46] [scripting] loading script file: /home/wp/.local/share/PBE/QOwnNotes/scripts/newNote.qml
[10:15:46] [scripting] loading script file: /home/wp/.local/share/PBE/QOwnNotes/scripts/newNote1.qml
[10:15:46] [scripting] Hello world!
[10:15:46] [status] 🔧 The scripting engine was reloaded
[10:16:37] [debug] storing note file: "Note 2025-07-09 10h16s37.md"
[10:16:37] [status] 💾 Stored current note to disk
[10:16:37] [debug] loadNoteDirectoryList
[10:16:37] [debug] reloadTagTree
[10:16:37] [debug] reloadTagTree - 'noteSubFolderIds': QList()
[10:16:37] [debug] setCurrentNote - 'note': Note: <id>408 <name>"Note 2025-07-09 10h16s37" <fileName>"Note 2025-07-09 10h16s37.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': true - 'updateSelectedNote': true
[10:16:37] [debug] added to history: NoteHistoryItem: <noteName>"Note 2025-07-09 10h16s37" <noteSubFolderPathData>"" <cursorPosition>0 <relativeScrollBarPosition>0
[10:16:47] [debug] storing note file: "Note 2025-07-09 10h16s37.md"
[10:16:47] [debug] stored note: Note: <id>408 <name>"Note 2025-07-09 10h16s37" <fileName>"Note 2025-07-09 10h16s37.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false
[10:16:47] [debug] storeUpdatedNotesToDisk - 'count': 1
[10:16:47] [status] 💾 Stored 1 note(s) to disk
[10:16:57] [debug] storing note file: "Note 2025-07-09 10h16s37.md"
[10:16:57] [debug] stored note: Note: <id>408 <name>"Note 2025-07-09 10h16s37" <fileName>"Note 2025-07-09 10h16s37.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false
[10:16:57] [debug] storeUpdatedNotesToDisk - 'count': 1
[10:16:57] [status] 💾 Stored 1 note(s) to disk
[10:21:26] [debug] cloudConnection: CloudConnection: <id>1 <name>"Default" <serverUrl>"" <username>"" <accountId>"" <priority>1

Information about the application, settings and environment

Expand

QOwnNotes Debug Information

General Info

Current Date: Wed Jul 9 10:25:29 2025 Version: 25.7.4 Build date: Jul 7 2025 Build number: 1201 Platform: linux (xcb) Operating System: Ubuntu 25.04 Build architecture: x86_64 Current architecture: x86_64 Release: Launchpad PPA Qt6 Qt Version (build): 6.8.3 Qt Version (runtime): 6.8.3 Portable mode: no Settings path / key: /home/wp/.config/PBE/QOwnNotes.conf Application database path: /home/wp/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite Application arguments: QOwnNotes Qt Debug: no System Botan: no Libgit2: no Locale (system): C Locale (interface): empty Primary screen resolution: 1920x1080 Screen resolution(s): 1920x1080, 1920x1200 Icon theme: Yaru Notes in current note folder: 408 Calendar items: 0 Enabled scripts: 2 Database drivers: QSQLITE

Server Info

serverUrl: empty appIsValid: no notesPathExists: empty connectionErrorMessage: empty

Spellchecking

Enabled: true Selected language: auto Language codes: el_GR, en_AU, en_CA, en_GB, en_US, en_ZA Language names: Ελληνικά (Ελλάδα), Australian English (Australia), Canadian English (Canada), British English (United Kingdom), American English (United States), English (South Africa) Application dictionaries path: /home/wp/.local/share/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 1

Note folder default

id: 1 isCurrent: yes activeTagId: 0 localPath: /home/wp/Nextcloud/Notes remotePath: Notes cloudConnectionId: 1 isShowSubfolders: no isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: /home/wp/Nextcloud/Notes/notes.sqlite

Cloud connections

Cloud connection Default

id: 1 isCurrent: yes serverUrl: empty username: empty accountId: empty

Enabled scripts

Script newNote

id: 3 path: /home/wp/.local/share/PBE/QOwnNotes/scripts/newNote.qml variablesJson:

{
}

Script newNote1

id: 4 path: /home/wp/.local/share/PBE/QOwnNotes/scripts/newNote1.qml variablesJson:

{
}

Settings

ActiveNoteHistoryItem (NoteHistoryItem): <binary data> Debug/fakeOldVersionNumber (QString): false Debug/fileLogging: empty Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb Editor/autoBracketClosing (QString): true Editor/autoBracketRemoval (QString): true Editor/disableCursorBlinking (QString): false Editor/editorWidthInDFMOnly (QString): true Editor/highlightCurrentLine (QString): true Editor/indentSize (QString): 4 Editor/removeTrailingSpaces (QString): false Editor/showLineNumbers (QString): false Editor/useTabIndent (QString): false Editor/vimMode (QString): false FileDialog/LastPath (QString): /home/wp/.local/share/PBE/QOwnNotes/scripts FileDialog/LastPath-ImportTextFiles (QString): /C/_d/Data/help/cherrytree/notes-from-split FileDialog/LastPath-ScriptPath (QString): /home/wp/.local/share/PBE/QOwnNotes/scripts IssueAssistantDialog/geometry (QByteArray): <binary data> LastUpdateCheck (QDateTime): 2025-07-09T10:11:39.052 LogWidget/criticalLog (bool): true LogWidget/debugLog (bool): true LogWidget/fatalLog (bool): true LogWidget/infoLog (bool): true LogWidget/scriptingLog (bool): true LogWidget/statusLog (bool): true LogWidget/warningLog (bool): true MainWindow/geometry (QByteArray): <binary data> MainWindow/mainToolBar.iconSize (QString): 24 MainWindow/menuBarGeometry (QByteArray): <binary data> MainWindow/noteTextEdit.code.font (QString): monospace,11,-1,5,400,0,0,0,1,0,0,0,0,0,0,1 MainWindow/noteTextEdit.font (QString): Ubuntu Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 MainWindow/noteTextView.code.font (QString): monospace,11,-1,5,400,0,0,0,1,0,0,0,0,0,0,1 MainWindow/noteTextView.font (QString): Ubuntu Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 MainWindow/noteTextView.ignoreCodeFontSize (QString): true MainWindow/noteTextView.refreshDebounceTime (QString): 600 MainWindow/noteTextView.rtl (QString): false MainWindow/noteTextView.underline (QString): false MainWindow/noteTextView.useEditorStyles (QString): true MainWindow/noteTextView.useInternalExportStyling (QString): true NoteFolder-1/NoteTabNameList (QString): 2025-05-05 postgrey for nicksoftware NoteFolder-1/NoteTabStickinessList: empty NoteFolder-1/NoteTabSubFolderPathDataList (QString): empty NoteHistory-1 (QVariantList): <variant list with 200 item(s)> NoteHistoryCurrentIndex-1 (QString): 199 PiwikClientId (QString): <hidden> ScriptRepositoryDialog/geometry (QByteArray): <binary data> ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data> SearchEngineId (QString): 0 SettingsDialog/geometry (QByteArray): <binary data> SettingsDialog/mainSplitterState (QByteArray): <binary data> ShowSystemTray (QString): false StartHidden (QString): false WelcomeDialog/geometry (QByteArray): <binary data> acceptAllExternalModifications (QString): false ai/groq/apiKey (QString): <hidden> ai/openai/apiKey (QString): <hidden> ai/responseTimeout (QString): 15 allowNoteEditing (bool): true allowOnlyOneAppInstance (QString): true appMetrics/disableAppHeartbeat (QString): false appMetrics/disableTracking (QString): false appMetrics/notificationShown (QString): true autoReadOnlyMode (QString): false autoReadOnlyModeTimeout (QString): 30 automaticNoteFolderDatabaseClosing (QString): false checkSpelling (bool): true closeTodoListAfterSave (QString): false cryptoKey (QString): <hidden> currentNoteFolderId (QString): 1 currentWorkspace (QString): initial cursorWidth (QString): 1 darkMode (QString): false darkModeColors (QString): false darkModeIconTheme (QString): false darkModeTrayIcon (QString): false defaultNoteFileExtension (QString): md demoNotesCreated (QString): true disableAutomaticUpdateDialog (QString): true disableSavedSearchesAutoCompletion (QString): false dockWasInitializedOnce (QString): true enableNoteTree (QString): false enableSocketServer (QString): true enableWebAppSupport (QString): false externalEditorPath (QString): empty fullyHighlightedBlockquotes (QString): false gitCommitInterval (QString): 30 gitExecutablePath (QString): empty gitLogCommand (QString): empty guiFirstRunInit (bool): true hideIconsInMenus (QString): false hideTabCloseButton (QString): false ignoreAllExternalModifications (QString): false ignoreAllExternalNoteFolderChanges (QString): false ignoreNoteSubFolders (QString): ^\. ignoredNoteFiles (QString): empty imageScaleDown (QString): false imageScaleDownMaximumHeight (QString): 1024 imageScaleDownMaximumWidth (QString): 1024 initialLayoutIdentifier (QString): minimal insertTimeFormat (QString): empty interfaceFontSize (QString): 11 interfaceLanguage (QString): empty internalIconTheme (QString): false itemHeight (QString): 18 legacyLinking (QString): false localTrash/autoCleanupDays (QString): 30 localTrash/autoCleanupEnabled (QString): true localTrash/supportEnabled (QString): true markdownHighlightingEnabled (QString): true maxNoteFileSize (QString): 1048576 navigationPanelAutoSelect (QString): true navigationPanelHideSearch (QString): false networking/ignoreSSLErrors (QString): true networking/proxyType (QString): 2 newNoteAskHeadline (QString): false noteEditIsCentralWidget (QString): true noteFileExtensionList (QStringList): md, txt noteListPreview (QString): false noteSaveIntervalTime (QString): 10 noteSubfoldersPanelDisplayAsFullTree (QString): false noteSubfoldersPanelHideSearch (QString): false noteSubfoldersPanelOrder (QString): 0 noteSubfoldersPanelShowFullPath (QString): false noteSubfoldersPanelShowNotesRecursively (QString): false noteSubfoldersPanelShowRootFolderName (QString): false noteSubfoldersPanelSort (QString): 0 noteSubfoldersPanelTabsUnsetAllNotesSelection (QString): false notesPanelOrder (QString): 0 notesPanelSort (QString): 1 notesPath (QString): /home/wp/Nextcloud/Notes notifyAllExternalModifications (QString): false overrideInterfaceFontSize (QString): false ownCloud/supportEnabled (QString): false ownCloud/todoCalendarBackend (QString): 3 ownCloud/todoCalendarCalDAVPassword (QString): <hidden> ownCloud/todoCalendarCalDAVServerUrl (QString): empty ownCloud/todoCalendarCalDAVUsername (QString): empty ownCloud/todoCalendarCloudConnectionId (QString): 1 ownCloud/todoCalendarDisplayNameList: empty ownCloud/todoCalendarEnabledList: empty ownCloud/todoCalendarEnabledUrlList: empty ownCloud/todoCalendarUrlList: empty restoreCursorPosition (QString): true restoreLastNoteAtStartup (QString): true restoreNoteTabs (QString): true savedSearches/noteFolder-1 (QStringList): Note 2025-07-09 10h16s37, Note 2025-07-08 23h18s04, Note 2025-07-08 23h17s13, Note 2025-07-08 23h13s39, Note 2025-07-08 22h24s15, new note sdfasdf, Note 2025-07-06 22h02s36, subnodes, 2024-11-10 Raspberry bookworm, 2023-11-09 google apis, 2023-10-19 install espanso, 2023 2025-07-06T22.01.46, 2023, 2022 2025-07-06T22.01.46, 2022, 2021-08-01: dahua camera 192, 2021-07-02 Update Ubuntu 20, 2021-04-06 permissions of aws, 2021-02-21: install node, 2021 2025-07-06T22.01.42, 2021 2025-07-06T22.01.41, 2021, 2020-12-29 Update Ubuntu 20, 2020-11-06: moodle, 2020-10-01 nicksoftware, 2020-06-11: flexi-graz, 2020-03-22 aws workspaces, 2020-03-18: node, 2020-02-23:moodle epep, 2020-02-20: moodle, 2020-02-18: docker for mysql, 2020-02-17: upgrade 19, 2020-01-15: LanTurtle setup:, 2019-11-15: Install Ubuntu 19, 2019-04-26 16:43 pruef, 2019-03-03 11:06: epep, 2018-06-16 14:58: Ubuntu 18, 2017-04-14 21:05: review, 2016-12-29 21:36: Ubuntu 16, 2016-09-24 19:08: wp-aws-64, 2016-06-25 10:49: Ubuntu 16, 2016-06-08 22:41: polzleitner, 2016-05-08 11:44: Ubuntu 16, 2015-12-09 17:11: fsniper, 2014-08-03 19:08: Ubuntu 14, 2014-05-09 18:20: vk, 2014-03-27 15:40: use node, 2012-07-02 22:56: winmail, 2012-06-24 11:26 Ubuntu 12, 2012-05-27 16:41: Ubuntu 11, 2010-12-30 19:37: Adobe Air 2, 2010-11-26 20:33: Ubuntu 10, 2010-04-24 16:14: Install qt4, 2010-01-10 19:59 Install qt4, 2009-12-08 20:30 Ubuntu 9, 2009-08-11 16:56: Sprueche:, 2009-04-03 22:42 ecryptfs:, 2009-01-04 13:22: dvd to ipod, 2009-01-03 19:43: dvd ripping showMatches (QString): true showMenuBar (bool): true showStatusBar (bool): true showStatusBarNotePath (QString): true showStatusBarRelativeNotePath (QString): false spellCheckLanguage (QString): auto startInReadOnlyMode (QString): false systemIconTheme (QString): false taggingShowNotesRecursively (QString): false tagsPanelHideNoteCount (QString): false tagsPanelHideSearch (QString): false tagsPanelOrder (QString): 0 tagsPanelSort (QString): 0 todoCalendarSupport (QString): true toolbar/size (QString): 0 useNoteFolderButtons (QString): false useUNIXNewline (QString): false webAppClientService/serverUrl (QString): wss://app.qownnotes.org webAppClientService/token (QString): <hidden> webSocketServerService/bookmarksNoteName (QString): Bookmarks webSocketServerService/bookmarksTag (QString): bookmarks webSocketServerService/commandSnippetsNoteName (QString): Commands webSocketServerService/commandSnippetsTag (QString): commands webSocketServerService/port (QString): 22222 workspace-initial/name (QString): Minimal workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspaces (QString): initial

System environment

COLORTERM: truecolor CVS_RSH: ssh CX_DEBUGMSG: err D: 2025.07.09 DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus DEBUGINFOD_URLS: https://debuginfod.ubuntu.com DESKTOP_SESSION: ubuntu-xorg DISPLAY: :0 GDMSESSION: ubuntu-xorg GNOME_DESKTOP_SESSION_ID: this-is-deprecated GNOME_KEYRING_CONTROL: /run/user/1000/keyring GNOME_SHELL_SESSION_MODE: ubuntu GNOME_TERMINAL_SCREEN: /org/gnome/Terminal/screen/cb40b6eb_70db_4eaa_a09b_41de5aaa01a5 GNOME_TERMINAL_SERVICE: :1.127 GPG_AGENT_INFO: /run/user/1000/gnupg/S.gpg-agent:0:1 GPLHOST: 66.251.193.117 GREP_COLORS: ms=01;04;37;41:mc=01;31:sl=:cx=:fn=01;04;32:ln=32:bn=32:se=36 GSM_SKIP_SSH_AGENT_WORKAROUND: true GTK_MODULES: gail:atk-bridge HISTCONTROL: ignoredups HISTFILESIZE: 1000000000 HISTSIZE: 100000000 HISTTIMEFORMAT: %y/%m/%d HOME: /home/wp IM_CONFIG_PHASE: 1 KDEDIR: /opt/kde3 LANG: C.UTF-8 LC_ADDRESS: en_US.UTF-8 LC_IDENTIFICATION: en_US.UTF-8 LC_MEASUREMENT: en_US.UTF-8 LC_MONETARY: en_US.UTF-8 LC_NAME: en_US.UTF-8 LC_NUMERIC: en_US.UTF-8 LC_PAPER: en_US.UTF-8 LC_TELEPHONE: en_US.UTF-8 LC_TIME: en_US.UTF-8 LD_LIBRARY_PATH: /usr/local/Trolltech/Qt5.12.2/Qt5.12.2/gcc_64/lib/:/usr/local/lib/: LESSCLOSE: /usr/bin/lesspipe %s %s LESSEDIT: gedit %f LESSOPEN: | /usr/bin/lesspipe %s LOGNAME: wp LS_COLORS: rs=0:di=01;94:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;36:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: MEMORY_PRESSURE_WATCH: /sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/org.gnome.SettingsDaemon.MediaKeys.service/memory.pressure MEMORY_PRESSURE_WRITE: c29tZSAyMDAwMDAgMjAwMDAwMAA= NVM_BIN: /home/wp/.nvm/versions/node/v23.11.0/bin NVM_CD_FLAGS: empty NVM_DIR: /home/wp/.nvm NVM_INC: /home/wp/.nvm/versions/node/v23.11.0/include/node PAPERSIZE: letter PASSWORD: ewmedh01 PATH: /home/wp/.pyenv/plugins/pyenv-virtualenv/shims:/home/wp/.pyenv/shims:/home/wp/.pyenv/bin:/home/wp/.nvm/versions/node/v23.11.0/bin:/usr/local/Trolltech/Qt5.12.2/Qt5.12.2/gcc_64/bin/:.:/home/wp/.cargo/bin:/home/wp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin PERL_HTML_DISPLAY_COMMAND: konqueror %s PROMPT_COMMAND: _pyenv_virtualenv_hook;echo -ne "\033]0;$(echo ${PWD}| sed s/\\/home\\/wp/~/g)\007";history -a; history -n PWD: /home/wp PYENV_ROOT: /home/wp/.pyenv PYENV_SHELL: bash PYENV_VIRTUALENV_INIT: 1 QTDIR: /usr/local/Trolltech/Qt5.12.2/Qt5.12.2/gcc_64/bin/ QT_ACCESSIBILITY: 1 QT_IM_MODULE: ibus SDKMAN_DIR: /home/wp/.sdkman SESSION_MANAGER: local/wp-frm-16:@/tmp/.ICE-unix/3596,unix/wp-frm-16:/tmp/.ICE-unix/3596 SHELL: /bin/bash SHLVL: 1 SPIDER: java -cp ../UrlTools/dist/UrlTools.jar:dist/Spider.jar:../jargs-1.0/lib/jargs.jar CheckLinks SSH_AUTH_SOCK: /run/user/1000/keyring/ssh SYSTEMD_EXEC_PID: 3995 TERM: xterm-256color USER: wp USERNAME: wp VTE_VERSION: 8000 WINDOWPATH: 2 WINEPREFIX: /home/wp/.wine XAUTHORITY: /run/user/1000/gdm/Xauthority XDG_CONFIG_DIRS: /etc/xdg/xdg-ubuntu-xorg:/etc/xdg XDG_CURRENT_DESKTOP: ubuntu:GNOME XDG_DATA_DIRS: /usr/share/ubuntu-xorg:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_MENU_PREFIX: gnome- XDG_RUNTIME_DIR: /run/user/1000 XDG_SESSION_CLASS: user XDG_SESSION_DESKTOP: ubuntu-xorg XDG_SESSION_TYPE: x11 XMODIFIERS: @im=ibus _: /usr/bin/QOwnNotes _WSREP_START_POSITION: empty cddlm: /home/wp/MyDownloads

wpoet avatar Jul 09 '25 07:07 wpoet

What script are we talking about?

pbek avatar Jul 09 '25 11:07 pbek

The means to "start" a script are implemented in the script.

pbek avatar Jul 09 '25 11:07 pbek

Trying to change the text for a new note:

import QtQuick 2.0 import QOwnNotesTypes 1.0

Item { property string trigger: "New note with template"

function onTriggered() {
    var title = "Note1111 " + noteManager.currentDateTimeIsoString();
    var content = "# " + title + "\n\nCreated: " + 

noteManager.currentDateTimeString() + "\n\n"; noteManager.createNote(title, content); } }

Wolfgang

On July 9, 2025 14:15:11 Patrizio Bekerle @.***> wrote:

pbek left a comment (pbek/QOwnNotes#3325)

What script are we talking about?

-- Reply to this email directly or view it on GitHub: https://github.com/pbek/QOwnNotes/issues/3325#issuecomment-3052238693 You are receiving this because you authored the thread.

Message ID: @.***>

wpoet avatar Jul 09 '25 12:07 wpoet

You are looking for custom actions: https://www.qownnotes.org/scripting/methods-and-objects.html#registering-a-custom-action

pbek avatar Jul 09 '25 12:07 pbek

noteManager? Where did you get that object from?

pbek avatar Jul 09 '25 12:07 pbek

Thanks so much! I'll study that. My script was from Copilot. Not very intelligent obviously.

Kind regards Wolfgang

On July 9, 2025 15:27:16 Patrizio Bekerle @.***> wrote:

pbek left a comment (pbek/QOwnNotes#3325)

You are looking for custom actions: https://www.qownnotes.org/scripting/methods-and-objects.html#registering-a-custom-action

-- Reply to this email directly or view it on GitHub: https://github.com/pbek/QOwnNotes/issues/3325#issuecomment-3052479545 You are receiving this because you authored the thread.

Message ID: @.***>

wpoet avatar Jul 09 '25 12:07 wpoet

You can also use the scripts from the script repository github as template...

pbek avatar Jul 09 '25 13:07 pbek

Yes, that's it. It works.

wpoet avatar Jul 10 '25 10:07 wpoet