{"id":13465539,"url":"https://github.com/tjx666/scripting-listener","last_synced_at":"2025-05-08T05:54:09.718Z","repository":{"id":52193886,"uuid":"468863183","full_name":"tjx666/scripting-listener","owner":"tjx666","description":"Switch and Log Viewer for Photoshop Scripting Listener","archived":false,"fork":false,"pushed_at":"2022-09-19T19:27:10.000Z","size":7369,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-08T05:54:04.163Z","etag":null,"topics":["actionmanager","extendscript","photoshop","photoshop-script","scriptinglistener","viewer","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=YuTengjing.scripting-listener","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjx666.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-11T18:42:23.000Z","updated_at":"2024-07-09T17:31:52.000Z","dependencies_parsed_at":"2023-01-18T14:45:09.844Z","dependency_job_id":null,"html_url":"https://github.com/tjx666/scripting-listener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"tjx666/vscode-extension-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fscripting-listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fscripting-listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fscripting-listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjx666%2Fscripting-listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjx666","download_url":"https://codeload.github.com/tjx666/scripting-listener/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253009850,"owners_count":21839713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actionmanager","extendscript","photoshop","photoshop-script","scriptinglistener","viewer","vscode-extension"],"created_at":"2024-07-31T15:00:31.696Z","updated_at":"2025-05-08T05:54:09.684Z","avatar_url":"https://github.com/tjx666.png","language":"TypeScript","funding_links":[],"categories":["My extensions"],"sub_categories":[],"readme":"# Scripting Listener\n\nSwitch and Log Viewer for Adobe Photoshop Scripting Listener Plugin.\n\n\u003e Only for MacOS users now!!!\n\n## Features\n\n- enable/disable scripting listener log\n- scripting listener log viewer\n- open scripting listener log file\n\n## Usage\n\n### Enable/Disable Scripting Listener Log\n\nOpen VSCode command plate by shortcut \u003ckbd\u003e⌘\u003c/kbd\u003e+\u003ckbd\u003e⇧\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e, then search and call command `Enable Scripting Listener Log` or `Disable Scripting Listener Log`\n\n### Scripting Listener Log Viewer\n\n\u003e Make sure you had installed the Scripting Listener plugin successfully. There should be a log file named `ScriptingListenerJS.log` in you desktop.\n\nOpen log viewer by calling command `Open Scripting Listener Log Viewer`. The Log Viewer contents will be automatically updated when the log file changed.\n\nThe buttons on top of log viewer:\n\n- `Enable Logging`: enable Scripting Listener\n- `Disable Logging`: disable Scripting Listener\n- `Refresh`: get the latest contents\n- `Clear`: empty Scripting Listener log file\n\nBy default, the log viewer only show 10 code blocks, and every code block will only be parsed 100 lines.\nYou can custom the behavior by settings:\n\n- ScriptingListener.codeBlockCount\n- ScriptingListener.parsedLinesCountPerCodeBlock\n\nThe code will be clean and pretty:\n\nSource:\n\n```javascript\nvar idhistoryStateChanged = stringIDToTypeID( \"historyStateChanged\" );\n    var desc592 = new ActionDescriptor();\n    var iddocumentID = stringIDToTypeID( \"documentID\" );\n    desc592.putInteger( iddocumentID, 219 );\n    var idID = stringIDToTypeID( \"ID\" );\n    desc592.putInteger( idID, 229 );\n    var idname = stringIDToTypeID( \"name\" );\n    desc592.putString( idname, \"\"\"Delete Layer\"\"\" );\n    var idhasEnglish = stringIDToTypeID( \"hasEnglish\" );\n    desc592.putBoolean( idhasEnglish, true );\n    var iditemIndex = stringIDToTypeID( \"itemIndex\" );\n    desc592.putInteger( iditemIndex, 5 );\nexecuteAction( idhistoryStateChanged, desc592, DialogModes.NO );\n```\n\nParsed:\n\n```javascript\nvar desc = new ActionDescriptor();\ndesc.putInteger(stringIDToTypeID('documentID'), 219);\ndesc.putInteger(stringIDToTypeID('ID'), 229);\ndesc.putString(stringIDToTypeID('name'), 'Delete Layer');\ndesc.putBoolean(stringIDToTypeID('hasEnglish'), true);\ndesc.putInteger(stringIDToTypeID('itemIndex'), 5);\nexecuteAction(stringIDToTypeID('historyStateChanged'), desc, DialogModes.NO);\n```\n\n![LogViewer](https://github.com/tjx666/scripting-listener/blob/master/images/LogViewer.gif?raw=true)\n\n### Open Scripting Listener Log File\n\nCalling command `Open Scripting Listener Log File` will open the log file using `javascript` language mode and apply the encoding what you set. You can define the encoding with setting: `ScriptingListener.logFileEncoding`, default is `utf-8`. For Chinese users, you may need to set encoding to `gbk` if your Photoshop is Chinese locale.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjx666%2Fscripting-listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjx666%2Fscripting-listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjx666%2Fscripting-listener/lists"}