-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernize method of saving show_info and app settings #11
Comments
jsonhelper is unable to make a JSON out of show_info. I will contact developer via twitter at @mousedownsoft |
JSONHelper can be used after all. ` set x to {show_title:"Happy_Holidays_America", show_time:16, show_length:60, show_air_date:Sunday, show_transcode:"missingvalue", show_temp_dir:"alias Backups:", show_dir:"alias Backups:", show_channel:5.1, show_active:true, show_id:"221fbe1126389e6af35f405aa681cf19", show_recording:false, show_last:"date Sunday, December 13, 2020 at 4:04:54 PM", show_next:"date Sunday, December 13, 2020 at 4:00:00 PM", show_end:"date Sunday, December 13, 2020 at 5:00:00 PM", notify_upnext_time:missing value, notify_recording_time:missing value, hdhr_record:"XX105404BE", show_is_series:false} |
The schema for the save file deserves a good thinking out. data{shows:show_info, hdhr_devices:HDHR_DEVICE_LIST, settings:misc_settings} |
`use AppleScript version "2.4" set x to make JSON from {atest:"123", atest2:123, atest3:((current date) as text), atest4:true, atest5:POSIX path of (path to me), atest6:missing value} set y to read JSON from x log ((date (atest3 of y)) - (current date)) |
jsonhelper fails to convert HFS paths, and dates into proper applescript, and then fails with a blank response. |
We can use json helper to convert records to json, and vice versa. This would allow us to store all of our data in a flat json file, instead of just a flat unorganized text file. This has mahy subtasks, which I can detail later.
The text was updated successfully, but these errors were encountered: