[GH-ISSUE #679] [Feature Request] - Add support for importing and exporting scripts, and perhaps breakpoints too. #674

Open
opened 2026-03-03 19:20:52 +03:00 by kerem · 8 comments
Owner

Originally created by @mprice-banno on GitHub (Nov 5, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/679

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version? (Ex. Proxyman 1.4.3)

2.11.1 (21110

macOS Version? (Ex. mac 10.14)

10.15.6

I would like to be able to export, and import, Proxyman scripts in order to share them between team members. Currently the only way to share a script is a bit of a hassle as the .js script doesn't include the matching rules.

  • You can use Show in Finder to locate the .js file and share that
  • You have to have to manually import it
  • Set the matching rules manually as well, as it doesn't contain the Matching Rule details, i.e. Name, URL, Type, Wildcard and Request/Response settings.

Additionally the script uses a hex filename, which doesn't lend well to sharing and identifying what it does.

Ideally, exporting a script would be a single file that contains:

  • The Name/Description
  • Matching URL
  • Method type (ANY, GET, POST etc)
  • Wildcard/Regex settings
  • Run on Request/Response
  • The JS script itself.

Whilst not as important, it would also be nice to be able to import and export breakpoint configurations as well.

Thanks! Keep up the great work on this indispensable tool.

Originally created by @mprice-banno on GitHub (Nov 5, 2020). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/679 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version? (Ex. Proxyman 1.4.3) 2.11.1 (21110 ### macOS Version? (Ex. mac 10.14) 10.15.6 I would like to be able to export, and import, Proxyman scripts in order to share them between team members. Currently the only way to share a script is a bit of a hassle as the .js script doesn't include the matching rules. * You can use Show in Finder to locate the .js file and share that * You have to have to manually import it * Set the matching rules manually as well, as it doesn't contain the Matching Rule details, i.e. Name, URL, Type, Wildcard and Request/Response settings. Additionally the script uses a hex filename, which doesn't lend well to sharing and identifying what it does. Ideally, exporting a script would be a single file that contains: * The Name/Description * Matching URL * Method type (ANY, GET, POST etc) * Wildcard/Regex settings * Run on Request/Response * The JS script itself. Whilst not as important, it would also be nice to be able to import and export breakpoint configurations as well. Thanks! Keep up the great work on this indispensable tool.
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 5, 2020):

It totally makes sense to share the script between your colleagues. Since it's straightforward to implement, it will do it in the next release 👍.

Thanks for opening the detailed ticket 😄

<!-- gh-comment-id:722067776 --> @NghiaTranUIT commented on GitHub (Nov 5, 2020): It totally makes sense to share the script between your colleagues. Since it's straightforward to implement, it will do it in the next release 👍. Thanks for opening the detailed ticket 😄
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 6, 2020):

@mprice-banno let check out this build https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.11.1_Import_Export_Script_Rules.dmg

Screen_Shot_2020-11-06_at_21_40_20

You can now export and import the entire Script too 👍

I will support Breakpoint now 👍

<!-- gh-comment-id:723119107 --> @NghiaTranUIT commented on GitHub (Nov 6, 2020): @mprice-banno let check out this build https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.11.1_Import_Export_Script_Rules.dmg ![Screen_Shot_2020-11-06_at_21_40_20](https://user-images.githubusercontent.com/5878421/98379344-c4cf8c80-2079-11eb-8fd1-8ccdddb2e600.png) You can now export and import the entire Script too 👍 I will support Breakpoint now 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 7, 2020):

v2 Update: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.11.1_Import_Export_Scripting_And_Breakpoint_Rules.dmg

  • Support Breakpoint Import and Export 🙌
<!-- gh-comment-id:723389575 --> @NghiaTranUIT commented on GitHub (Nov 7, 2020): v2 Update: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.11.1_Import_Export_Scripting_And_Breakpoint_Rules.dmg + Support Breakpoint Import and Export 🙌
Author
Owner

@mprice-banno commented on GitHub (Nov 9, 2020):

@NghiaTranUIT I just gave it a try, was able to export a script, but when I tried to import it, running on a different system, it failed with Could not Import Rules! - The folder “5F0D1383.js” doesn’t exist. which matches the filePath in the exported config file.

id":"5F0D1383","filePath":"\/Users\/markprice\/Library\/Application Support\/com.proxyman.NSProxy\/scripts\/5F0D1383.js"

Importing the same config file, on the system it was exported, from works.

<!-- gh-comment-id:724162627 --> @mprice-banno commented on GitHub (Nov 9, 2020): @NghiaTranUIT I just gave it a try, was able to export a script, but when I tried to import it, running on a different system, it failed with `Could not Import Rules! - The folder “5F0D1383.js” doesn’t exist.` which matches the `filePath` in the exported config file. `id":"5F0D1383","filePath":"\/Users\/markprice\/Library\/Application Support\/com.proxyman.NSProxy\/scripts\/5F0D1383.js"` Importing the same config file, on the system it was exported, from works.
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 10, 2020):

Sorry for this inconvenience @mprice-banno.

Please check out this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.11.1_Bug_Import_Export_Script.dmg

I'm to reproduce your bug in my teammate's machine and it's fixed 👍 😄

<!-- gh-comment-id:724420180 --> @NghiaTranUIT commented on GitHub (Nov 10, 2020): Sorry for this inconvenience @mprice-banno. Please check out this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.11.1_Bug_Import_Export_Script.dmg I'm to reproduce your bug in my teammate's machine and it's fixed 👍 😄
Author
Owner

@loganjones commented on GitHub (Nov 11, 2020):

@mprice-banno sent me a script exported from his machine and it imported for me successfully. Works great!

<!-- gh-comment-id:725049979 --> @loganjones commented on GitHub (Nov 11, 2020): @mprice-banno sent me a script exported from his machine and it imported for me successfully. Works great!
Author
Owner

@mprice-banno commented on GitHub (Nov 11, 2020):

Thanks for implementing this! This helps so much!

I have a related feature request, and I'll file that separately. New request would be to add the ability to create groups of scripts, so you can arrange them by project for example, and even import/export groups of scripts.

A visual example of this is the way text expander tool aText does it.

Screen Shot 2020-11-10 at 10 11 21 AM Screen Shot 2020-11-10 at 5 10 46 PM
<!-- gh-comment-id:725064778 --> @mprice-banno commented on GitHub (Nov 11, 2020): Thanks for implementing this! This helps so much! I have a related feature request, and I'll file that separately. New request would be to add the ability to create groups of scripts, so you can arrange them by project for example, and even import/export groups of scripts. A visual example of this is the way text expander tool aText does it. <img width="342" alt="Screen Shot 2020-11-10 at 10 11 21 AM" src="https://user-images.githubusercontent.com/58708906/98752911-057c1e00-2378-11eb-970d-7f854f6decd0.png"> <img width="340" alt="Screen Shot 2020-11-10 at 5 10 46 PM" src="https://user-images.githubusercontent.com/58708906/98752926-0c0a9580-2378-11eb-93c7-91c3cfffa8a2.png">
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 11, 2020):

Thanks, guys for confirming that it works well 😄

Yes, we've received this feature request, "Group Rules to Folder" too. I will push this feature soon 👍

<!-- gh-comment-id:725088838 --> @NghiaTranUIT commented on GitHub (Nov 11, 2020): Thanks, guys for confirming that it works well 😄 Yes, we've received this feature request, "Group Rules to Folder" too. I will push this feature soon 👍
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#674
No description provided.