#!/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") |
Whenever I try running the command it spits out override rw-r--r-- user/staff for /Users/user/.Trash/.ffuserdata? (y/n [n])
Thank you so much @tueng1
I use your method and it is amazing! It works!
For anyone who keeps forgetting which is the correct command to use, I made a simple gist. Feel free to save it so that you can come back to it later. Find it here: https://gist.github.com/TehBrian/bf82c7505b647d423da6d5abbe2b95a3
Just copied and pasted the command from above into my terminal and it worked! Final Cut went from 46 days back to 90! Awesome! Is there a command we can use for Logic Pro?
Logic Pro X Trial reset:
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash
Does anyone have a Logic Pro 10.5 trial download link? I have Mojave, this version is the highest I can use.
@dannote the last comment looks like some kind of scam.
@notxcain Removed it, thnx
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?
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.
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
mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash
Added later:
Actually I need Logic Pro reset trial, not Final Cut.
Sorry, pirate brothers. Aaaarrrrgggghhhh!