Here is a simple example:
https://swarm.workshop.perforce.com/projects/p4pythonlib/files/p4pythonlib/triggers/clienttrigger.py
This code is quite old - and it relies on P4Python, but you should get the idea.
Cheers,
Sven Erik
--
Sven Erik Knop | Principal Solutions Engineer
Perforce Software<http://www.perforce.com>
T: +44 1189 771020<tel:+441189771020> | M: +44 7974 351514<tel:+447974351514>
Visit us on: Twitter<https://twitter.com/perforce> | LinkedIn<https://www.linkedin.com/company/perforce-software> | Facebook<https://www.facebook.com/Perforce>
On 29 Mar 2017, at 15:42, Sven Erik Knop <***@perforce.com<mailto:***@perforce.com>> wrote:
Indeed :-)
Cheers,
Sven Erik
--
Sven Erik Knop | Principal Solutions Engineer
Perforce Software<http://www.perforce.com>
T: +44 1189 771020<tel:+441189771020> | M: +44 7974 351514<tel:+447974351514>
Visit us on: Twitter<https://twitter.com/perforce> | LinkedIn<https://www.linkedin.com/company/perforce-software> | Facebook<https://www.facebook.com/Perforce>
On 29 Mar 2017, at 15:40, SeanT <perforce-user-***@forums.perforce.com<mailto:perforce-user-***@forums.perforce.com><mailto:perforce-user-***@forums.perforce.com>> wrote:
Posted on behalf of forum user 'SeanT'.
Hi Sven,
i haven't done much scripting at all, it's mainly all C/C++, i can just
about get by with bash but am open to any assistance in any scripting language.
i am currently looking at https://www.perforce.com/blog/160826/advanced-form-triggers-p4python which
seems to give some good examples of form out triggers, in fact looking at
author��i guess it was written by yourself.
--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/948-how-to-set-the-default-submit-option-for-new-workspaces
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com<mailto:perforce-***@perforce.com>
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perfor