Compiler oddities
Compiler oddities
- Subject: Compiler oddities
- From: 2551phil <email@hidden>
- Date: Sat, 02 Jul 2016 19:07:30 +0700
This compiles:
# 1 tell application "System Events" set theItems to name of every file of folder "bin" of folder "usr" of startup disk end tell
and if I replace the application name with the variable, so does this (and it’ll run correctly, too):
#2 set theSysEvents to "System Events" tell application theSysEvents propertiesend tell
but trying to combine the command in 1 and the variable substitution in 2 together throws a compiler error:
#3 set theSysEvents to "System Events" tell application theSysEventsset theItems to name of every file of folder "bin" of folder "usr" of startup disk end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden