Hello. When TM is looking at a file that was opened as a result of a 3rd party ftp application, is there any way to get to the full url path to the remote server?
In BBedit, I would see sftp://foo@example.com/example.com/files/some_place/test.php
I would like to be able to access that url above, in each file, in order to make a bundle. The idea is, that if I can get to that, I can parse it, and inspire TM to open a browser and run the current code I am working on, at the correct url.
Currently, I have a comment line at the top of a file, which is read and parsed, and then passed to open in a bundle, which will open in Safari for me. It sort of works around some of the issues I have with the refresh running browsers, as it only refreshes the one page.
I would love to be able to not have to write the comment url, and have it be more automatic. The only path I can see to access in TM now, is one that points back to a tmp location, which is local, and not remote. -- Scott * If you contact me off list replace talklists@ with scott@ *
Before I delete this email from my mailing list folder, I thought I would give it one more chance to bump, and see if anyone knew a solution.
On Apr 6, 2009, at 3:29 PM, Scott Haneda wrote:
Hello. When TM is looking at a file that was opened as a result of a 3rd party ftp application, is there any way to get to the full url path to the remote server?
In BBedit, I would see sftp://foo@example.com/example.com/files/some_place/test.php
I would like to be able to access that url above, in each file, in order to make a bundle. The idea is, that if I can get to that, I can parse it, and inspire TM to open a browser and run the current code I am working on, at the correct url.
Currently, I have a comment line at the top of a file, which is read and parsed, and then passed to open in a bundle, which will open in Safari for me. It sort of works around some of the issues I have with the refresh running browsers, as it only refreshes the one page.
I would love to be able to not have to write the comment url, and have it be more automatic. The only path I can see to access in TM now, is one that points back to a tmp location, which is local, and not remote.
On Apr 8, 2009, at 3:17 AM, Scott Haneda wrote:
Before I delete this email from my mailing list folder, I thought I would give it one more chance to bump, and see if anyone knew a solution.
Looks like the temp file that Cyberduck creates has the URL as part of the spotlight metadata:
spinoza:~$ cd /private/var/folders/oL/oLF7LHJlFMCVxamgN6TnJU+++TI/- Tmp-/vze26m98.net spinoza:/private/var/folders/oL/oLF7LHJlFMCVxamgN6TnJU+++TI/-Tmp-/ vze26m98.net$ ls index.html spinoza:/private/var/folders/oL/oLF7LHJlFMCVxamgN6TnJU+++TI/-Tmp-/ vze26m98.net$ xattr -l index.html com.apple.metadata:kMDItemWhereFroms: 0000 62 70 6C 69 73 74 30 30 A1 01 5F 10 2A 66 74 70 bplist00.._.*ftp 0010 3A 2F 2F 76 7A 65 32 36 6D 39 38 2E 6E 65 74 2F :// vze26m98.net/ 0020 76 7A 65 32 36 6D 39 38 2E 6E 65 74 2F 69 6E 64 vze26m98.net/ ind 0030 65 78 2E 68 74 6D 6C 08 0A 00 00 00 00 00 00 01 ex.html......... 0040 01 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 37 ........7
com.apple.quarantine: 0000;49dc871b;Cyberduck;175CE20D-401E-4AC5-BB43- EA7298B1050D|ch.sudo.cyberduck com.macromates.caret: 0000 78 9C AB E6 52 00 82 E4 FC 9C D2 DC 3C 05 5B 05 x...R.......<.[. 0010 03 6B 30 3F 27 33 2F 15 C2 AB 05 00 8B 99 08 1D .k0?'3/.........
HTH, Charles
Interesting. Interarchy does not seem to store any data at all.
On Apr 8, 2009, at 6:55 AM, Charles Turner wrote:
On Apr 8, 2009, at 3:17 AM, Scott Haneda wrote:
Before I delete this email from my mailing list folder, I thought I would give it one more chance to bump, and see if anyone knew a solution.
Looks like the temp file that Cyberduck creates has the URL as part of the spotlight metadata:
spinoza:~$ cd /private/var/folders/oL/oLF7LHJlFMCVxamgN6TnJU+++TI/- Tmp-/vze26m98.net spinoza:/private/var/folders/oL/oLF7LHJlFMCVxamgN6TnJU+++TI/-Tmp-/ vze26m98.net$ ls index.html spinoza:/private/var/folders/oL/oLF7LHJlFMCVxamgN6TnJU+++TI/-Tmp-/ vze26m98.net$ xattr -l index.html com.apple.metadata:kMDItemWhereFroms: 0000 62 70 6C 69 73 74 30 30 A1 01 5F 10 2A 66 74 70 bplist00.._.*ftp 0010 3A 2F 2F 76 7A 65 32 36 6D 39 38 2E 6E 65 74 2F :// vze26m98.net/ 0020 76 7A 65 32 36 6D 39 38 2E 6E 65 74 2F 69 6E 64 vze26m98.net/ ind 0030 65 78 2E 68 74 6D 6C 08 0A 00 00 00 00 00 00 01 ex.html......... 0040 01 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 37 ........7
com.apple.quarantine: 0000;49dc871b;Cyberduck;175CE20D-401E-4AC5-BB43- EA7298B1050D|ch.sudo.cyberduck com.macromates.caret: 0000 78 9C AB E6 52 00 82 E4 FC 9C D2 DC 3C 05 5B 05 x...R.......<.[. 0010 03 6B 30 3F 27 33 2F 15 C2 AB 05 00 8B 99 08 1D .k0?'3/.........
HTH, Charles
I got an email from the Interarchy developer on this...
Textmate and Interarchy communicate via the ODB Editor Suite so it should have the remote url. There may be some way to affect Textmate such that it displays this URL but I am not familiar enough with the program ...
So, it seems the url is passed into TM, now, how to get ahold of it in a bundle. This would be so massively helpful to me, I am often working on many files, all over the place, a lot of them are all called index.php. Quickly you can get lost to where you are. If I had way to invoke a command that would get me the ftp/ssh/sftp path, that would be nice. Ideally, this would be something that is shown in the title bar.
I have a feeling this needs to be answered by the developer of TM. If anyone else out there has any suggestions, I would love to hear them, and give them a shot.
-- Scott * If you contact me off list replace talklists@ with scott@ *
On Apr 18, 2009, at 12:13 AM, Allan Odgaard wrote:
On 16 Apr 2009, at 02:57, Scott Haneda wrote:
[...] So, it seems the url is passed into TM, now, how to get ahold of it in a bundle [...]
This is not possible, it will need to be handled by TM.
Is it on the radar at all? Should I file I feature request?
On 18 Apr 2009, at 10:44, Scott Haneda wrote:
[...] This is not possible, it will need to be handled by TM.
Is it on the radar at all? Should I file I feature request?
It is on the radar. Unless I say I don’t want to do a certain thing, it’s generally safe to assume it is.