Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#722 closed Enhancement (fixed)

Add UTI support

Reported by: aspro Owned by: livings124
Priority: Low Milestone: 1.50
Component: Mac Client Version: 1.40
Severity: Minor Keywords: UTI
Cc:

Description

I am working on a QuickLook? plugin (ticket #481) and to get .torrent files to be associated with my plugin a UTI needs to assigned to .torrent files.

This can be added to the Info.plist file as shown here: http://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/understand_utis_conc/chapter_2_section_4.html#//apple_ref/doc/uid/TP40001319-CH202-BCGFBBIA

Some of the information needed can be found at this site: http://www.huw.id.au/filetypes.html

A sample one that may not be accurate:

	<key>UTImportedTypeDeclarations</key>
	<array>
	  <dict>
		<key>UTTypeDescription</key>
		<string>Torrent</string>
		<key>UTTypeIdentifier</key>
		<string>com.bittorrent.torrent</string>
		<key>UTTypeConformsTo</key>
		<array>
		  <string>public.data</string> <!-- should that be public.text? -->
		  <string>public.item</string>
		</array>
		<key>UTTypeReferenceURL</key>
		<string>http://www.bittorrent.org/beps/bep_0003.html</string>
		<key>UTTypeTagSpecification</key>
		<dict>
		  <key>public.filename-extension</key>
		  <array>
			<string>torrent</string>
		  </array>
		  <key>public.mime-type</key>
		  <string>application/x-bittorrent</string>
		</dict>
	  </dict>
	</array> 

Attachments (2)

Info.plist.patch (1.2 KB) - added by dak180 12 years ago.
Patch against the info.plist file
Info.plist (3.3 KB) - added by dak180 12 years ago.
full info.plist file (adapted from current in trunk)

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 years ago by livings124

If you could get a working patch for this I would really appreciate it.

comment:2 Changed 13 years ago by aspro

I'm sorry, I don't have the time to finish my quicklook plugin, so close this and if I have time to finish it I will submit a patch for this and the plugin itself.

comment:3 Changed 13 years ago by livings124

  • Resolution set to wontfix
  • Status changed from new to closed

Changed 12 years ago by dak180

Patch against the info.plist file

comment:4 Changed 12 years ago by dak180

  • Resolution wontfix deleted
  • Status changed from closed to reopened
  • Version changed from 1.05 to 1.40

comment:5 Changed 12 years ago by livings124

That's not a valid patch. Perhaps just attach the who Info.plist?

comment:6 Changed 12 years ago by livings124

whole Info.plist

Changed 12 years ago by dak180

full info.plist file (adapted from current in trunk)

comment:7 follow-up: Changed 12 years ago by livings124

Why did you add "tor" as a file extension?

comment:8 in reply to: ↑ 7 Changed 12 years ago by dak180

Replying to livings124:

Why did you add "tor" as a file extension?

For two reasons; Azureus has it, and if you got a file from a system that truncated the file name after the '.' to 3 characters, that would be what you get.

comment:9 Changed 12 years ago by livings124

  • Milestone changed from None Set to 1.50
  • Resolution set to fixed
  • Status changed from reopened to closed

I've added this in r7504, minus the addition of the .tor extension

comment:10 Changed 12 years ago by livings124

1.5x: r7671

Note: See TracTickets for help on using tickets.