exit("When --dump used, an --input must be given")
if (args.dump):
- with ds_store.DSStore.open(args.input, 'r+') as d:
+ with ds_store.DSStore.open(args.input, 'r') as d:
print(f"d=")
print(pprint.pformat(d['.']['bwsp'], width=1))
# myprint(f"d['{f}']=", d[f])
# else:
# myprint(f"# No filename '{filename}' found in DS_Store '{args.input}'")
- exit(0)
+ exit(0)
if (args.output and not (args.input or args.config)):
exit("Need --input FILENAME or --config FILENAME to produce an --output")
alias.volume.name = args.volumename
alias.volume.posix_path = "/Volumes/" + args.volumename
-
-alias.volume.disk_image_alias.volume.name = "Macintosh HD"
-alias.volume.disk_image_alias.volume.posix_path = "/"
-
-alias.volume.disk_image_alias.target.filename = args.dmg
-alias.volume.disk_image_alias.target.folder_name = "Downloads"
-alias.volume.disk_image_alias.target.carbon_path = f'Macintosh HD:Users:Jalview:Downloads:{args.dmg}'
-alias.volume.disk_image_alias.target.posix_path = f'/Users/jalview/Downloads/{args.dmg}'
-
+alias.volume.disk_image_alias = None
alias.target.filename = args.backgroundfile
alias.target.folder_name = args.backgrounddir
alias.target.carbon_path = f'{args.volumename}:{args.backgrounddir}:{args.backgroundfile}'