Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Set variable to output of text field- xcode 4.5, applescript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dhmmjoph" data-source="post: 1492887" data-attributes="member: 276211"><p>with the log here:</p><p>[CODE]</p><p>if theText is equal to "123" then</p><p> log "Got here"</p><p> display dialog "Yay! This works!"</p><p> end if</p><p>[/CODE]</p><p>nothing showed up in the log.</p><p></p><p>With the log here:</p><p>[CODE]</p><p> if sender is equal to myTextField then</p><p> log "Got here"</p><p> set theText to sender's stringValue()</p><p> end if</p><p>[/CODE]</p><p>the log showed up.</p></blockquote><p></p>
[QUOTE="dhmmjoph, post: 1492887, member: 276211"] with the log here: [CODE] if theText is equal to "123" then log "Got here" display dialog "Yay! This works!" end if [/CODE] nothing showed up in the log. With the log here: [CODE] if sender is equal to myTextField then log "Got here" set theText to sender's stringValue() end if [/CODE] the log showed up. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Set variable to output of text field- xcode 4.5, applescript
Top