-
-
Save dannote/17e0396fe2e19c6e60c915838376d267 to your computer and use it in GitHub Desktop.
#!/usr/bin/swift | |
import Foundation | |
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath) | |
let data = try! NSData(contentsOf: path) as Data | |
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary | |
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary | |
for (key, value) in mutableDictionary { | |
if value is NSDate { | |
mutableDictionary[key] = Date() | |
} | |
} | |
try! NSKeyedArchiver.archivedData(withRootObject: mutableDictionary, requiringSecureCoding: false).write(to: path) | |
print("You'd better buy it") |
can it work on new macos 14 sonoma
can it work on new macos 14 sonoma
Yes
@tueng1 I am trying to run your command in Sonoma but it doesn't work. Here's the error I get. Can you please help?
@tueng1 I am trying to run your command in Sonoma but it doesn't work. Here's the error I get. Can you please help?
@karanmgandhi, run it in the Terminal app.
Shortcuts is running it as administrator and therefore ~
refers to root's home (as opposed to your user's home) which is not where .ffuserdata is stored.
Understood, tried it and it worked! Thanks a lot @TehBrian !
Install FCPX trial
Open terminal and run: crontab -e
Add line: 0 0 */90 * * rm -rf ~/Library/Application\ Support/.ffuserdata
Save in nano: CTRL + O, Enter, CTRL + X
Save in vim: ESC, :wq, Enter
Verify cronjob: crontab -l
Can anyone confirm if it is working on macos sequoia?
It’s working for me on the latest fcp. Just run the rm command in the terminal and check the trial period length.
It’s working for me on the latest fcp. Just run the rm command in the terminal and check the trial period length.
Did you execute it in macOS Sequoia?
Please confirm if it still works on macOS Sequoia?
The latest version of Final Cut Pro seems not to work with this script:
main/final-cut-pro-trial-reset.swift:6: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “.ffuserdata” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/[RESTRICTED]/Library/Application Support/.ffuserdata, NSURL=file:///Users/[RESTRICTED]/Library/Application%20Support/.ffuserdata, NSUnderlyingError=0x12e610c40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Does someone have a solution?
hey if anyone is looking for lpx 10.5.1 its here
i was just digging around on web archive and found this
hope it helps
(https://web.archive.org/web/20200813214541/https://www.apple.com/logic-pro/trial/)