Skip to content

Instantly share code, notes, and snippets.

@dannote
Last active November 21, 2024 14:43
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
// DISCLAIMER
// This script modifies an unencrypted file associated with the trial version of Final Cut Pro.
// Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological
// protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections.
// Distributing this code is therefore legal under the DMCA.
// This script is intended for educational and research purposes, such as exploring trial-related file structures,
// or for system troubleshooting in controlled environments with explicit permissions. It is not intended to be used
// in a manner that violates Apple's software license agreement.
// WARNING
// Using this script to reset or extend the trial period of Final Cut Pro without Apple's authorization likely violates
// the software license agreement. Such actions may lead to legal consequences. The responsibility for compliance with
// all applicable laws and agreements lies solely with the user. The author of this script assumes no liability for misuse
// or any resulting consequences.
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Containers/com.apple.FinalCutTrial/Data/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")
@PieroMarraffa
Copy link

Hi guys, I'm trying to run the command on my M1, but it still give me the error message "no such file or directory". Ran it on my intel mac and worked. Can you help me?

@scriptivRED
Copy link

Hello! I am trying to run this on my Intel Mac running Monterey and I keep getting the error code "zsh: event not found: /usr/bin/swift"

How do I solve this? This is running in Terminal, it seems that's how it needs to be done.

@TehBrian
Copy link

TehBrian commented May 2, 2023

Hello! I am trying to run this on my Intel Mac running Monterey and I keep getting the error code "zsh: event not found: /usr/bin/swift"

How do I solve this? This is running in Terminal, it seems that's how it needs to be done.

@scriptivRED, try this script instead: https://gist.github.com/TehBrian/bf82c7505b647d423da6d5abbe2b95a3

@MrMinecraft97
Copy link

MrMinecraft97 commented Jun 6, 2023

Does anyone have the trial installer for Logic Pro 10.6.3, for Mac OS Catalina 10.15.7? The link above for 10.4.8 works, it's just older.

Also, for those looking, @b0gdanw has final cut has links here. https://gist.github.com/b0gdanw/956b1edc61145ea21ac4a8c1f6cdccc9.

Links from https://www.apple.com/final-cut-pro/trial/
Release history https://en.wikipedia.org/wiki/Final_Cut_Pro_X#Release_history

Final Cut Pro 10.1.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-05296.20140814.VRR4r/FinalCutProTrial10.1.3.dmg

Final Cut Pro 10.1.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-02980.20141202.Jgt44/FinalCutProTrial10.1.4.dmg

Final Cut Pro 10.2
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-08830.20150413.HPPE4/FinalCutProTrial10.2.dmg

Final Cut Pro 10.2.2
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-24917.20150826.Xer4r/FinalCutProTrial10.2.2.dmg

Final Cut Pro 10.2.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-43177.20160129.QERFT/FinalCutProTrial10.2.3.dmg

Final Cut Pro 10.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-18986.20161031.61F2C306-4972-4289-BF7D-58C3386FA605/FinalCutProTrial10.3.dmg

Final Cut Pro 10.3.1
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-86817.20161108.164BDD1F-52A7-4829-8F49-810B78A12A2A/FinalCutProTrial10.3.1.dmg

Final Cut Pro 10.3.2
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-91726.20170119.164CEE1F-52A7-4829-8F49-810B78A12A2A/FinalCutProTrial10.3.2.dmg

Final Cut Pro 10.3.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-13391.20170522.164CEE1F-52A7-4829-8F49-810B78A12A2B/FinalCutProTrial10.3.4.dmg

Final Cut Pro 10.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/091-00662.20171128.164CEE1F-52A7-4829-8F49-810B78A12A2B/FinalCutProTrial10.4.dmg

Final Cut Pro 10.4.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/091-84145-20180530-bac0824e-dd7b-423b-b4d5-eb61358d2911/FinalCutProTrial10.4.3.dmg

Final Cut Pro 10.4.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/091-68456-20181115-01EC2FD2-85EB-11E8-AB5B-AEA972136C40/FinalCutProXTrial10.4.4.dmg

Final Cut Pro 10.4.6
https://secure-appldnld.apple.com/Final_Cut_Pro_X/041-31543-20190327-3F404204-9E56-4D0B-BBEF-94E8568884B5/FinalCutProTrial10.4.6.dmg

Final Cut Pro 10.4.7
https://secure-appldnld.apple.com/Final_Cut_Pro_X/041-95564-20190911-0DBC366A-75BC-4AAF-82F3-71F28071CF86/FinalCutProTrial10.4.7.dmg

Final Cut Pro 10.4.8
https://secure-appldnld.apple.com/Final_Cut_Pro_X/061-39440-20191108-D1C6C4E3-177B-4D5C-A359-794DE891C60E/FinalCutProTrial10.4.8.dmg
https://secure-appldnld.apple.com/Final_Cut_Pro_X/061-77685.20200323.164CEE1F-52A7-4829-8F49-810B78A12A2B/FinalCutProTrial10.4.8.dmg

Final Cut Pro X 10.4.10
https://secure-appldnld.apple.com/Final_Cut_Pro_X/001-47214-20200922-c2f15b72-6e01-4a64-844c-b940e0a0c4ae/FinalCutProXTrial10.4.10.dmg

Final Cut Pro 10.5
https://updates.cdn-apple.com/2020/macos/001-43922-20201105-e6abc088-95e6-428b-9d4d-992fab3ea3e7/FinalCutProTrial10.5.dmg

Final Cut Pro 10.5.1
https://updates.cdn-apple.com/2020/macos/001-82240-20201210-8a3a19b9-e908-4938-85be-a57452483746/FinalCutProTrial.dmg

Final Cut Pro 10.5.2
https://secure-appldnld.apple.com/Final_Cut_Pro_X/071-09642-20210301-c8feaf55-699d-4c92-a2cc-9c5adff1cbd5/FinalCutProTrial.dmg

Final Cut Pro 10.5.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/071-54624-20210609-10716BC3-11BB-4B36-B18D-98BDB40D13BB/FinalCutProTrial.dmg

Final Cut Pro 10.5.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/071-62955-20210702-B0EAC2CA-E28D-40AE-8BFA-E8C0D6551DE2/FinalCutProTrial.dmg

Final Cut Pro 10.6 for macOS 11.5.1 or later
https://secure-appldnld.apple.com/Final_Cut_Pro_X/071-15424-20211015-3A5EA572-8823-4DD2-8E8B-608100399702/FinalCutProTrial.pkg

Final Cut Pro 10.6.1
https://secure-appldnld.apple.com/Final_Cut_Pro_X/002-26102-20211111-AA549D59-31C7-4327-9307-B34E6BB6F5B3/FinalCutProTrial.dmg

Final Cut Pro 10.6.2
https://secure-appldnld.apple.com/Final_Cut_Pro_X/002-87769-20220408-B4B54294-5AE7-40B8-B8E9-DA5697CB7B8F/FinalCutProTrial.dmg

Final Cut Pro 10.6.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/012-04880-20220519-225A343F-EEED-4F00-A3E8-508161D7928F/FinalCutProTrial.dmg

Final Cut Pro 10.6.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/012-45845-20220805-C1220551-4F16-4C52-8445-DA7248625C60/FinalCutProTrial.dmg

Final Cut Pro 10.6.5
https://secure-appldnld.apple.com/Final_Cut_Pro_X/012-94751-20221024-4D0F1E34-DC43-4216-9FF6-F6C186A95201/FinalCutProTrial.dmg

Final Cut Pro 10.6.6
https://secure-appldnld.apple.com/Final_Cut_Pro_X/032-63828-20230518-1706A689-750D-448B-A7D8-200C1C1A508B/FinalCutProTrial.dmg

@MrMinecraft97
Copy link

Digging around through archive.org I found this link for the trial version of 10.6.1. Keep in mind, I had to use free download manager to download it, chrome would keep going to network error. Also seems to be a version before the sidechain bug.

10.6.1:
https://web.archive.org/web/20210423102247if_/https://updates.cdn-apple.com/2020/macos/001-84693-20201210-59cbf73b-5b4b-4bdc-841e-7c28304c90a6/LogicProTrial.dmg

@vohracodes
Copy link

kindly help me anyone for the steps to apply this

@adamaaaa-stack
Copy link

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/)

@urm1n
Copy link

urm1n commented Oct 29, 2023

can it work on new macos 14 sonoma

@tueng1
Copy link

tueng1 commented Oct 30, 2023

can it work on new macos 14 sonoma

Yes

@karanmgandhi
Copy link

@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?

Screenshot 2024-02-20 at 5 29 33 PM
Screenshot 2024-02-20 at 5 30 28 PM

@TehBrian
Copy link

@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.

@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

@l0u1sg
Copy link

l0u1sg commented Nov 15, 2024

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?

@TehBrian
Copy link

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?

Try this: https://gist.github.com/TehBrian/bf82c7505b647d423da6d5abbe2b95a3

@l0u1sg
Copy link

l0u1sg commented Nov 17, 2024 via email

@TehBrian
Copy link

@l0u1sg, I've updated https://gist.github.com/TehBrian/bf82c7505b647d423da6d5abbe2b95a3 with the correct path for newer versions of Final Cut Pro.

Additionally, I've made a similar Gist for Logic Pro, https://gist.github.com/TehBrian/1c236b6d9c58e736c0480a876759164d, which I'll keep updated as well.

@l0u1sg
Copy link

l0u1sg commented Nov 18, 2024 via email

@dannote
Copy link
Author

dannote commented Nov 21, 2024

@TehBrian thank you, updated the code accordingly.

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