Question

hello everyone im trying to create this tweak that copies a file from one spot to another everytime a specific app opens. Would this be correct to use. im still really new to this, but trying, what command should be placed to have this run everytime the app opens.

- (BOOL)fileManager:(NSFileManager *)fileManager 
 shouldCopyItemAtPath:(NSString *)srcPath *path/to/where/file/is 
 toPath:(NSString *)dstPath *where/i/want/it/copied/to
Was it helpful?

Solution

If you want this to run every time the app opens then you can call it from application:didFinishLaunchingWithOptions: in your app delegate.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top