Re: oddities with a Mail rule & Numbers
Re: oddities with a Mail rule & Numbers
- Subject: Re: oddities with a Mail rule & Numbers
- From: Brian Christmas <email@hidden>
- Date: Sat, 3 Jun 2017 17:43:15 +1000
G’day Phil
I presume you’re setting theSpreadsheet as a property?
If so, then this…
set targetWord to "whatever" tell application "System Events" set theUserPath to (home folder's path as text) end tell set the theSpreadsheet to "Documents:myNumbers.numbers" set theSpreadsheet to theUserPath & theSpreadsheet
because
open alias (my theSpreadsheet) needs it set as a property
It should read…
set targetWord to "whatever" tell application "System Events" set theUserPath to (home folder's path as text) end tell set tempTheSpreadsheet to "Documents:myNumbers.numbers" set (my theSpreadsheet) to theUserPath & tempTheSpreadsheet
The last 3 versions of Sierra have required any ‘my Variable' to be enclosed in brackets, ie (my Variable). Took me ages to change over 50,000 lines of coding in my full set of Apps. Regards
Santa
open alias (my theSpreadsheet)
|
_______________________________________________
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