Last active
November 15, 2024 15:21
-
-
Save dannote/17e0396fe2e19c6e60c915838376d267 to your computer and use it in GitHub Desktop.
Final Cut Pro X trial reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
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?
No I haven’t - need to download. But if the file is in the folder it should
just delete it
…On Sat, 28 Sep 2024 at 12:24 PM geetch ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
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?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/dannote/17e0396fe2e19c6e60c915838376d267#gistcomment-5210683>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBWMI7Z54X4HI7G6HZLOW3ZY3Q3XBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4DIMBSGM4DANVHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Please confirm if it still works on macOS Sequoia?
Yes it works
…On Tue, 1 Oct 2024 at 2:36 PM utkcodes ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Please confirm if it still works on macOS Sequoia?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/dannote/17e0396fe2e19c6e60c915838376d267#gistcomment-5213773>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBWMI7QBSRQDNUQRGDEXRLZZL2TJBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4DIMBSGM4DANVHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
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?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Understood, tried it and it worked! Thanks a lot @TehBrian !