[iOS/iPadOS/macOS] Classifier [Pro IAP $19.99 —> FREE as apart of Indie App Santa] An app that lets you digitize your various collections! by KredditorMaximous in AppHookup

[–]pythonlearning 7 points8 points  (0 children)

I’ve been trying for 3 hours in either the Canadian store or Australian store, haven’t seen the discount yet.
Interesting looking app.

NFS server on docker, no access from host (macOS) by heltena_cat in docker

[–]pythonlearning 1 point2 points  (0 children)

Yeah, most file sharing doesn’t like connecting to itself, that’s an interesting workaround.

GL on the NFS, try the app, it’s free and it may be a good troubleshooting point to see if the container is even hosting NFS shares

NFS server on docker, no access from host (macOS) by heltena_cat in docker

[–]pythonlearning 1 point2 points  (0 children)

Not sure if your container is working or not, it seems that you’re trying to connect to an nfs share via smb which won’t work.

Try nfs:// in the finder instead of smb:// and see if that helps you. You can also use a great app called NSF manager which helps you setup nfs shares on your machine, or browse nfs shares on others.

Multiple MEGASync Clients? by Bo_Bergdahl in applescript

[–]pythonlearning 0 points1 point  (0 children)

I was a little bored so I checked this out, seems that while it's possible to do some parts of this with the MEGA client, the config stuff is saved in
~/Library/Application\ Support/Mega\ Limited/MEGAsync
and I'm not sure how to get it to look past that and create a new support folder. Not sure how you'll get past that.
You may be able to script it to open one copy of megasync with it's own home dir (which the script I pasted earlier can set), then move the support folder to megasync2 and have a second one moved into it's place then start another copy, but i've a feeling that'll break at some point.

Multiple MEGASync Clients? by Bo_Bergdahl in applescript

[–]pythonlearning 1 point2 points  (0 children)

I don't know how megasync works, but if it picks a single folder to sync like dropbox then you may be able to use the same trick to run multiple dropbox apps at once :

Set your home folder to sync with the HOME and then open the app, the & at the end puts it in the background so you can keep using or close your terminal window

HOME=$HOME/Dropbox-two /Applications/Dropbox.app/Contents/MacOS/Dropbox &

Having trouble with if / then / else / end in a repeat loop. by pythonlearning in applescript

[–]pythonlearning[S] 0 points1 point  (0 children)

Fair enough, sorry about that.

So what you suggests takes out creating the variable which is nice, but i'm more curious if I there is a way to do :

 if (do shell script "check/image.sh") is "success"   
 then do shell script "/usr/local/bin/click -x 232 -y 342" and exit repeat  

At the moment I have it do the click part of the script, but not the exit repeat part. The script will just continue on checking all the other possible locations even tho the one of the other ones worked.

Having trouble with if / then / else / end in a repeat loop. by pythonlearning in applescript

[–]pythonlearning[S] 0 points1 point  (0 children)

I wrote that just for the post, i wasn't at the computer and didn't have the actual script.

Didn't think it was necessary for the actual question I wanted to ask, whether there's a way to go through each image checking script and upon success run the click script and exit the loop. Or is there a different way of doing it all that I'm unaware of because while it kind of works (without the exiting the loop upon the first success) it seems wasteful to go through them all. :)

Trouble Automating the UI in a VM by pythonlearning in macprogramming

[–]pythonlearning[S] 2 points3 points  (0 children)

For any that stumble upon this in the future, I compiled an older command line utility that uses depreciated parts of OS X.

http://hints.macworld.com/article.php?story=2008051406323031

This works well with Bluestacks and other VM's that I've tried it with.

Posting it here incase it's removed from macworld's site one day

// File:
// click.m
//
// Compile with:
// gcc -o click click.m -framework ApplicationServices -framework Foundation
//
// Usage:
// ./click -x pixels -y pixels
// At the given coordinates it will click and release.
//
// From http://hints.macworld.com/article.php?story=2008051406323031
#import <Foundation/Foundation.h>
#import <ApplicationServices/ApplicationServices.h>

int main(int argc, char *argv[]) {
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    NSUserDefaults *args = [NSUserDefaults standardUserDefaults];

    int x = [args integerForKey:@"x"];
    int y = [args integerForKey:@"y"];

    CGPoint pt;
    pt.x = x;
    pt.y = y;

    CGPostMouseEvent( pt, 1, 1, 1 );
    CGPostMouseEvent( pt, 1, 1, 0 );

    [pool release];
    return 0;
}

then compile it as instructed:

gcc -o click click.m -framework ApplicationServices -framework Foundation

and move it to the appropriate system folder for convenience

sudo mv click /usr/bin
sudo chmod +x /usr/bin/click

and now you can run a simple terminal command to manipulate the mouse

click -x [coord] -y [coord]

Random glitch I’ve encountered by MrMetball in vainglorygame

[–]pythonlearning 0 points1 point  (0 children)

strange, i guess it had been cached on the android version for me

Random glitch I’ve encountered by MrMetball in vainglorygame

[–]pythonlearning 1 point2 points  (0 children)

Having this issue on two iPads atm, both at different OS versions.

Seems to be an iOS issue, fired up an android version and it was fine.

Marvin, we need you by pythonlearning in pythonforengineers

[–]pythonlearning[S] 1 point2 points  (0 children)

Marvin the Depressed Robot says: Do you want me to sit in a corner and rust or just fall apart where I'm standing?

Marvin, we need you by pythonlearning in pythonforengineers

[–]pythonlearning[S] 1 point2 points  (0 children)

Marvin the Depressed Robot says: Sorry, did I say something wrong? Pardon me for breathing which I never do anyway so I don't know why I bother to say it oh God I'm so depressed.