Skip to content

Instantly share code, notes, and snippets.

@dannote
Last active October 7, 2024 13:59
Show Gist options
  • Save dannote/17e0396fe2e19c6e60c915838376d267 to your computer and use it in GitHub Desktop.
Save dannote/17e0396fe2e19c6e60c915838376d267 to your computer and use it in GitHub Desktop.
Final Cut Pro X trial reset
#!/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")
@karanmgandhi
Copy link

karanmgandhi commented Feb 21, 2024

Understood, tried it and it worked! Thanks a lot @TehBrian !

@andresreibel
Copy link

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

@geetch
Copy link

geetch commented Sep 28, 2024

Can anyone confirm if it is working on macos sequoia?

@andresreibel
Copy link

It’s working for me on the latest fcp. Just run the rm command in the terminal and check the trial period length.

@geetch
Copy link

geetch commented Sep 28, 2024

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?

@andresreibel
Copy link

andresreibel commented Sep 28, 2024 via email

@utkcodes
Copy link

utkcodes commented Oct 1, 2024

Please confirm if it still works on macOS Sequoia?

@andresreibel
Copy link

andresreibel commented Oct 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment