xcode - Multiline textbox in OSAScript -


i wanting edit testflightapp archive script when prompts release notes bigger textbox 1 line. right displays size of 1 line allow me press ctrl+j add multiple lines.

however issue trying see have typed pain can view 1 line @ time.

here have.

# bring applescript dialog in xcode enter release notes (beta) build: notes=`osascript -e "tell application \"xcode\"" -e "set notes_dialog display dialog \"please provide release notes:\nhint: use ctrl-j new line.\" default answer \"\" buttons {\"next\"} default button \"next\" icon 1" -e "set notes text returned of notes_dialog" -e "end tell" -e "return notes"` 

it's not possible, text field of display dialog in xcode or automator can't resized. possible using display dialog of osax "standardadditions". try this.

notes=`osascript -e "tell application \"dock\"" -e "activate" -e "display dialog \"please provide release notes.\" default answer \"\r\r\r\r\r\r\r\r\r\" buttons {\"next\"} default button \"next\" title \"xcode\"" -e "set notes text returned of result" -e "end tell" -e "set {tid, text item delimiters} {text item delimiters, \"\n\"}" -e "set r (paragraphs of notes) string" -e "set text item delimiters tid" -e "activate application \"xcode\"" -e "return r"` 

the text field show 9 lines. add line: press return key. if have more 9 lines, can scroll (the arrow key, page key or mouse). script convert carriage returns newlines , doesn't return trailing blank lines.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -