hyperlink in password item's Location field
hello, Is there a way to format a URL in the Location field of a password item so that clicking on it opens the default browser to that location? (and perhaps bring the password in the clipboard!) Also, is there a way to format the same field so that clicking it opens an ftp session to that location? In other words, clicking a Location: ftp://[EMAIL PROTECTED] opens a command line (or your favorite ftp client) ftp session to 10.10.10.10 (even better if it could form the command ftp://user:password@10.10.10.10) Also, is there a way to format the same field so that clicking it opens an ssh connection to that location. In other words, clicking a Location: ssh://[EMAIL PROTECTED] opens terminal with command: ssh user@10.10.10.10 (it would be nice if it could grab user from the Account field) Anyway, it should be clear where this is going. How can the location field take you to where you want to go, and form an appropriate command? thanks! - eric -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]
Re: AppleScript: How to access note contents?
On May 22, 2007, at 10:35 PM, Jim DeVona wrote: Can someone help me figure out how to access note text with AppleScript? Here is a contrived example of what I'm trying to do: tell application Yojimbo set _item to make new note item with properties {name:Foo, contents:Bar} set _text to contents of _item end tell I'd like to assign the Bar contents to the _text variable, but it just gets another reference to the note item. I don't actually need to put it all in a variable; According to the Scripting Guidelines: If an object’s contents can be represented as a single value, it should define a contents property. For example, documents in a word processor would define a contents property that returned all the text as a string. contents is usually writable. For this reason, Yojimbo note items have a property named contents. The problem you are running into is because you have a variable which contains a reference (specifier) to the note item. AppleScript treats contents of specially when operating on variables. set x to 3 contents of x -- 3 If x is a reference/specifier to an object, then sometimes AppleScript will automatically dereference the variable for you. tell application Script Editor set d to document 2 name of d -- My Fancy Script name of contents of d -- My Fancy Script end tell But AppleScript doesn't do the implicit dereferencing when asking for the contents property (because of the semantics in the first example.) tell application Script Editor set d to document 2 name of d -- My Fancy Script contents of d -- AppleScript asks the script editor for `document 2`, and it returns -- document 2 of application Script Editor contents of contents of d -- AppleScript asks the script editor for `contents of document 2`, and it returns -- the text content of the document contents of document 2 -- AppleScript asks the script editor for `contents of document 2`, and it returns -- the text content of the document end tell This conflict between the contents property and the contents of operator can be confusing. To solution in this situation (when you've got a specifier stored in a variable) is to use the double contents of syntax: set s to contents of contents of variableName Jim -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]
Re: AppleScript: How to access note contents?
On 5/23/07, Jim Correia [EMAIL PROTECTED] wrote: ... To solution in this situation (when you've got a specifier stored in a variable) is to use the double contents of syntax: set s to contents of contents of variableName Jim On 5/23/07, Adrian [EMAIL PROTECTED] wrote: Yes, this one caused no no end of pain. What you want is set _text to contents of contents of _item Killer, huh? I think contents must be some sort of reserved word. Thank you both for the solution, Adrian and Jim. The AppleScript information is useful, too. Thanks again, Jim -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]
Re: hyperlink in password item's Location field
On 5/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a way to format a URL in the Location field of a password item so that clicking on it opens the default browser to that location? (and perhaps bring the password in the clipboard!) I've thought it would be nice if there was a little Open button next to that location field, too. Anyway, someone recently alluded to the fact that if you right click on that field the first item selected in the popup menu is Open URL. Also, is there a way to format the same field so that clicking it opens an ftp session to that location? Also, is there a way to format the same field so that clicking it opens an ssh connection to that location. In other words, As with the bookmark locations, just specify the full URL with ftp:// or ssh:// or whatever. When you open the URL the associated program will open it: in my case, ftp links open in Cyberduck, and ssh links open in Terminal. Jim -- -- This message is sent to you because you are subscribed to the mailing list yojimbo-talk@barebones.com. To unsubscribe, send mail to: [EMAIL PROTECTED] List archives: http://www.listsearch.com/yojimbotalk.lasso Have a feature request, or not sure if the software's working correctly? Please send mail to: [EMAIL PROTECTED]