[GH-ISSUE #1531] Custom path for scripts #1523

Open
opened 2026-03-03 19:52:11 +03:00 by kerem · 5 comments
Owner

Originally created by @Geri-Borbas on GitHub (Feb 8, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1531

Originally assigned to: @NghiaTranUIT on GitHub.

Description

Would be great to have custom paths for scripts.
Perhaps even better to just have a custom path for the scripts folder.
Could be similar what we have for Map local right now.

Screenshot 2023-02-08 at 13 55 54

Why this feature/change is important?

We started versioning of the scripts as they started to grow. Maintaining a repository in ~/Library/Application Support/com.proxyman.NSProxy is somewhat cumbersome, especially when someone else have to clone the repo.

Originally created by @Geri-Borbas on GitHub (Feb 8, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1531 Originally assigned to: @NghiaTranUIT on GitHub. ## Description Would be great to have custom paths for scripts. Perhaps even better to just have a custom path for the `scripts` folder. Could be similar what we have for Map local right now. ![Screenshot 2023-02-08 at 13 55 54](https://user-images.githubusercontent.com/1779614/217535727-b4a5a360-930a-491c-accb-e9882c4267b1.png) ## Why this feature/change is important? We started **versioning of the scripts** as they started to grow. **Maintaining a repository** in `~/Library/Application Support/com.proxyman.NSProxy` is somewhat cumbersome, especially when someone else have to clone the repo.
Author
Owner

@Geri-Borbas-Shape commented on GitHub (Feb 8, 2023):

Would be great if the rule tree file ScriptService-RuleTree could be also versioned from the same folder.

<!-- gh-comment-id:1422584388 --> @Geri-Borbas-Shape commented on GitHub (Feb 8, 2023): Would be great if the rule tree file `ScriptService-RuleTree` could be also versioned from the same folder.
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 9, 2023):

The scripting requires two folders:

  • ~/Library/Application Support/com.proxyman.NSProxy/scripts
  • ~/Library/Application Support/com.proxyman.NSProxy/user-data/ScriptService-RuleTree

If select a custom directory for the Scripting, I suppose that it should move two folders to your destination. Thus, you can use Git to manage the version.

For example: I select ~/Desktop/my_script

  • ~/Desktop/my_script/scripts
  • ~/Desktop/my_script/user-data/ScriptService-RuleTree
<!-- gh-comment-id:1424234171 --> @NghiaTranUIT commented on GitHub (Feb 9, 2023): The scripting requires two folders: - `~/Library/Application Support/com.proxyman.NSProxy/scripts` - `~/Library/Application Support/com.proxyman.NSProxy/user-data/ScriptService-RuleTree ` If select a custom directory for the Scripting, I suppose that it should move two folders to your destination. Thus, you can use Git to manage the version. For example: I select `~/Desktop/my_script` - `~/Desktop/my_script/scripts` - `~/Desktop/my_script/user-data/ScriptService-RuleTree `
Author
Owner

@Geri-Borbas commented on GitHub (Feb 9, 2023):

Thanks for getting back, such a great product! 💎

Unsure about how can you select a custom directory for the Scripting? (using 4.2.0 (42000))
Are they use the same as Map Local?

<!-- gh-comment-id:1424241227 --> @Geri-Borbas commented on GitHub (Feb 9, 2023): Thanks for getting back, such a great product! 💎✨ Unsure about **how can you select a custom directory for the Scripting?** (using `4.2.0 (42000)`) Are they use the same as Map Local?
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 9, 2023):

It's not implemeted yet 😄 It's just my propose, but I believe that it's feasible.

<!-- gh-comment-id:1424297681 --> @NghiaTranUIT commented on GitHub (Feb 9, 2023): It's not implemeted yet 😄 It's just my propose, but I believe that it's feasible.
Author
Owner

@Geri-Borbas commented on GitHub (Feb 9, 2023):

Haha, sure! Just wanted to double-check if I'm not missing something. 😄

Yep, I figured out something similar about the files, so right now I created a repo in the Application Support/com.proxyman.NSProxy folder with this .gitignore.

/**/*
!.gitignore

# Script sources
!scripts

# Script rules
!user-data/ScriptService-RuleTree

That would be super-awesome to have a custom location for these files as you proposed, so it could be super-easy to share/version scripts in a team! 🔥

<!-- gh-comment-id:1424307126 --> @Geri-Borbas commented on GitHub (Feb 9, 2023): Haha, sure! Just wanted to double-check if I'm not missing something. 😄 Yep, I figured out something similar about the files, so right now I created a repo in the `Application Support/com.proxyman.NSProxy` folder with this `.gitignore`. ``` /**/* !.gitignore # Script sources !scripts # Script rules !user-data/ScriptService-RuleTree ``` That would be super-awesome to have a custom location for these files as you proposed, so it could be super-easy to share/version scripts in a team! 🔥
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1523
No description provided.