If you have Filemaker Pro Advanced you can run a DDR, Database Design Report.
In the report there is a list of scripts with:
Layouts that use this script
Scripts that use that script
Create the report as HTML and it will be easy searchable as well.
To make it easier, there are some commercial tools that will parse out the DDR and create a searchable database. Two I'm aware of are:
baseElements (from Goya)
InspectorPro (from Vince Mennano)
...and CrossCheck by Armin Egginger. Easy to find/isolate non-referenced objects (not just scripts)
All the advice given here is good.
And if a script isn't called from a button, a trigge, a menu etcr,mthen it is probably. not in use.
Bit if there are many users with a large solution you could create a simple subscript called when a script is running. Setting a k
logentry in a log table with the information, when, by whom, from what button, trigger and other relevant data,
Remember to have an easy way to disable the logging when not needed,
Scripts that are not logged after some time are probably not in use.
Finally can reply to this been trying all day just doesn't work. Thanks for all the suggestions, the first one works well since there's a lot of scripts but not so many I can't go through them all. I just had a bunch as well where I'd try to use a starter solution and merge it into mine so there'd be tons of scripts from that etc. Thanks!
A simple way to shorten your scripts list is to create folders
Following on from siplus. Create a 'Deprecated Scripts' folder. Dump the scripts in there that you believe that you will never need again. Rename the scripts you are dumping as 'YourScriptName' then add 'DEPRECATED' and the date you moved it.
So, a script that was named 'Move To Contacts' would become 'Move To Contacts DEPRECATED 25-8-15'.
You will soon see when debugging a script or running a test if you still need it.
Scripts take up minimal amount of disk space - if they never run, then it's minimal overhead to the overall size of the file - it's how you organise them that counts. Deleting a script can spell severe headaches all round unless you are absolutely sure you don't need it. Bitter experience tells me so!