PrimalScript Version 7.3.103
64X Version
Windows 10 X64
When i open a script a.g.a d:\wamp64\www\index.php. Primalscript will not let me edit in the scripts.(like keyboard is locked, but i can move cursor around)
The status bar is saying [Ready Ascii BLOCK]. I suspected it might have been files comming from another Source and that the file had to be unblocked.
At first 3 files was blocked and i removed the Block from all of them. However....PrimalScript is still treating the files as blocked. Does it have some kind of cache on Block?, No other program is treating these files as blocked. Any way to turn of that feature in PrimalScript ?
Cannot edit files in primal script
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Cannot edit files in primal script
Well i found a workaround even if it is annoying. Open in Primalscript. Save it, Close file and reopen. Then the Block is gone on the status bar.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: Cannot edit files in primal script
Blocking files that come from the internet or another computer is not a PrimalScript feature, it is a Windows feature. Windows does not allow editing (saving that is) or executing files that have come from an outside source. PrimalScript, PrimalPad and PowerShell Studio alert you to the existence of such a lock via the status bar and by treating the file as if it was read-only, which it effectively is. We also do not allow execution of such script files as a security measure.
If you remove the lock attribute outside the application you do need to reload the file, that is correct.
The easier way however is to unblock the file within PrimalScript:
Right click on the file tab and click on the "Blocked" menu topic with the check mark. PowerShell Studio has a similar context menu item. The block/unblock feature for PrimalPad is located on the ribbon interface.
If you remove the lock attribute outside the application you do need to reload the file, that is correct.
The easier way however is to unblock the file within PrimalScript:
Right click on the file tab and click on the "Blocked" menu topic with the check mark. PowerShell Studio has a similar context menu item. The block/unblock feature for PrimalPad is located on the ribbon interface.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Cannot edit files in primal script
Thank you Alexander.
I know about the Windows "feature" of blocking files, however PrimalScript kept saying it was blocked even after i removed the block in windows. It did not help to reload the file (my reload method was to close the file and reopen, i did not know about the reload feature in PrimalScript then), i had to save it in Primalscript first.
Thank you so much for the tip about unblocking files in PrimalScript, i did honestly not know you could right click on the tabs, and wow theres all that stuff i been looking for lol. Unblocking there worked like a charm
After downloading my work to my home computer this time i ran "gci d:\(mypath) -recurse | unblock-file" in powershell to unblock all files before starting to work.
Again thank you
I know about the Windows "feature" of blocking files, however PrimalScript kept saying it was blocked even after i removed the block in windows. It did not help to reload the file (my reload method was to close the file and reopen, i did not know about the reload feature in PrimalScript then), i had to save it in Primalscript first.
Thank you so much for the tip about unblocking files in PrimalScript, i did honestly not know you could right click on the tabs, and wow theres all that stuff i been looking for lol. Unblocking there worked like a charm
After downloading my work to my home computer this time i ran "gci d:\(mypath) -recurse | unblock-file" in powershell to unblock all files before starting to work.
Again thank you