Search the Community
Showing results for tags 'string'.
This is change case tools inspired by change-case - Visual Studio Marketplace and wrapper by ku/go-change-case. Quickly change the case of a string or latest clipboard string and copy it to the clipboard. Download | Source
I have a simple question. I want to send a URL to a browser. Or a string to an already active input box in an application. How do i do this? The only thing i can find is Key Combo which sends only one key. I want to send a string. Ah, and the Open URL doesn't work for me because i want to send the URL to an already open browser. It seems such a simple operation, but i cannot figure out how to do it.
Apologies for what is a pretty basic question for most people in this forum, but does anybody know how to click a menu item that contains quotation marks? More specifically, in the Mail app, I would like to take one of my mailboxes offline (as opposed to taking them all offline). However, the menu items include quotation marks around the name of each mailbox. For example, from the menu's hierarchy, the menu might look something like the following: Mailbox Online Status Take "GMAIL" Offline Take "AOL" Offline Take "Hotmail" Offline Take "Prodigy" Offline Under this setup, what should my applescript look like if I wanted to click the GMAIL option? I've tried the following code below, but it doesn't work. if application "Mail" is running then activate application "Mail" tell application "System Events" tell process "Mail" click menu item "Take \"GMAIL\" Offline" of menu 1 of menu item "Online Status" of menu 1 of menu bar item "Mailbox" of menu bar 1 end tell end tell else display notification "To take a mailbox offline, Mail must be open." with title "Mail - Not Open" end if I suspect I screwed up how to deal with quotation marks in the string, but I can't seem to figure it out. I've tried adding more slashes and moving them around, but I haven't had any luck. I'm a newbie, so thanks for any help you can lend!!