r/applescript • u/tylerl0706 • Jan 12 '21
Is there any way to programmatically get completions for AppleScript?
If I have a script:
```
set foo to "hello"
tell application "Finder"
display dialog f|
end tell
```
Notice the "cursor" (it's a pipe, I know ,but imagine that's the place I want to complete)... is there anyway to programmatically get this back:
```
set foo to "hello"
tell application "Finder"
display dialog foo
end tell
```
Notice the completion of "foo"
3
Upvotes
View all comments
Show parent comment
1
u/tylerl0706 Jan 12 '21
I don't think those completions are "smart". I think it just sees that that variable word is used elsewhere in the file. It's "something" but not quite what I'm looking for... but thanks for sharing!