Search found 310 matches

by Piero
Sun Apr 14, 2024 8:12 am
Forum: General Discussion
Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
Replies: 7
Views: 267

Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04

BarryG wrote: Sun Apr 14, 2024 4:45 amI use UPX to shrink my exe from 10 MB to 4 MB (which also has the benefit of reducing VirusTotal false positives).
Many thanks for this!

PS: Please don't tell to the ppl on Mac section I own a PC :oops:
by Piero
Sat Apr 13, 2024 3:15 pm
Forum: Mac OSX
Topic: Good News! Fuzzy Completion!
Replies: 10
Views: 616

Video

by Piero
Sat Apr 13, 2024 12:15 pm
Forum: Mac OSX
Topic: Open web page
Replies: 3
Views: 201

Re: Open web page

I was playing with RunProgram but couldn't get the right combination. #helppath$="/Applications/PureBasic.app/Contents/Resources/help/purebasic/" Procedure.s sh(search$) Protected Output$, shell shell = RunProgram("/bin/sh","","", #PB_Program_Open|#PB_Program...
by Piero
Sat Apr 13, 2024 6:01 am
Forum: Mac OSX
Topic: Good News! Fuzzy Completion!
Replies: 10
Views: 616

Finally! Fuzzy Autocomplete!

I found what the problem was! Hint: \r !!! Now works very well! (at least on Monterey M1) Version 0.0001b1 Optimized the delays (for my Mac…) Put a minimum of 3 characters needed (max is 16, see the hack…) Updated procedure regex See VIDEO ! Needs: Support Text File (updated Apr 09, 2024) Homebrew '...
by Piero
Fri Apr 12, 2024 5:24 pm
Forum: Mac OSX
Topic: Good News! Fuzzy Completion!
Replies: 10
Views: 616

Update

Small update to script above because sort -u pipe wasn't working as expected
by Piero
Fri Apr 12, 2024 12:08 pm
Forum: Tricks 'n' Tips
Topic: Mac-os transparent canvas gadget
Replies: 2
Views: 186

Re: Mac-os transparent canvas gadget

What OS do you have? Doesn't work in Monterey (I tested M1 and Intel)
by Piero
Fri Apr 12, 2024 6:18 am
Forum: Bugs - Mac OSX
Topic: IDE Editing [6.10 LTS, C Backend (arm64)]
Replies: 2
Views: 144

Re: IDE Editing [6.10 LTS, C Backend (arm64)]

It doesn't seem to happen here with Monterey, but I see the cursor blinking at the end of selected text (anywhere)
Hope this may help with debugging
by Piero
Thu Apr 11, 2024 2:00 pm
Forum: Mac OSX
Topic: Good News! Fuzzy Completion!
Replies: 10
Views: 616

Re: Good News! Fuzzy Completion!

I imagine the Gurus of this Forum seeing "delay 0.3"… it must feel like I would feel eating pineapple pizza with ketchup
by Piero
Thu Apr 11, 2024 10:34 am
Forum: Mac OSX
Topic: Good News! Fuzzy Completion!
Replies: 10
Views: 616

Re: Good News! Fuzzy Completion!

Version 0.0001a5 Trapped possible errors, also bugfixing the "no procedures" error (remember: it needs homebrew ggrep) Added some cocoa to detect option key up (my shortcut is ⌥Z) Added esc in case of PB autocomplete open Fixed sort -- AppleScript PB IDE Tool (no parameters needed) for Fuz...
by Piero
Thu Apr 11, 2024 10:32 am
Forum: Mac OSX
Topic: runprogram Command in Mac OS
Replies: 16
Views: 1271

Re: runprogram Command in Mac OS

JohnF wrote: Thu Apr 11, 2024 7:45 am Warmest Regards from Redwood City, California,
John
Again, you are very welcome!

PS: Don't tell Fred, but I still consider it as a BIG BUG of RunProgram :wink:
by Piero
Wed Apr 10, 2024 6:12 pm
Forum: Mac OSX
Topic: runprogram Command in Mac OS
Replies: 16
Views: 1271

Re: runprogram Command in Mac OS

It seems you don't need to get the output, so you can use a simplified shell procedure if you want: Procedure simpleShell(ShellCommand$) Protected shell shell = RunProgram("/bin/zsh","","", #PB_Program_Open|#PB_Program_Write) If shell WriteProgramStringN(shell,ShellComm...
by Piero
Wed Apr 10, 2024 12:49 pm
Forum: Mac OSX
Topic: runprogram Command in Mac OS
Replies: 16
Views: 1271

Re: runprogram Command in Mac OS

JohnF wrote: Wed Apr 10, 2024 7:25 amMany thanks!
John
BTW, you are very, VERY welcome: I entered this forum for the same reason, screaming with indignation that runprogram wasn't working
:lol: :mrgreen:
by Piero
Wed Apr 10, 2024 7:37 am
Forum: Mac OSX
Topic: runprogram Command in Mac OS
Replies: 16
Views: 1271

Re: runprogram Command in Mac OS

From my 1st post above:

Code: Select all

Shell("/usr/local/bin/exiftool -LensMake=Leica AG")
if it works on Terminal, otherwise try:

Code: Select all

Shell("/usr/local/bin/exiftool -LensMake='Leica AG'")
or

Code: Select all

Shell(~"/usr/local/bin/exiftool -LensMake=\"Leica AG\"")
by Piero
Wed Apr 10, 2024 6:28 am
Forum: Mac OSX
Topic: runprogram Command in Mac OS
Replies: 16
Views: 1271

Re: runprogram Command in Mac OS

Code: Select all

Debug ~" \\ \" "
by Piero
Wed Apr 10, 2024 5:53 am
Forum: Mac OSX
Topic: runprogram Command in Mac OS
Replies: 16
Views: 1271

Re: runprogram Command in Mac OS

JohnF wrote: Wed Apr 10, 2024 12:16 amif you can help with this.
Huh? If you use the shell procedure I posted above, you must get the same results you get in Terminal!
In case, you only have to properly escape \ and " in the PB ~"string"...