Just change "file" to "alias".

Silly me. Yes, that worked. Thank you! (But it still _should_ work as “file” as it does with names shorter that 64 characters.)


However when used as a variable, it still doesn't work:

-- this works
tell application "BBEdit" to open alias "Drive:Users:me:Desktop:I Once Had a Sparrow Alight Upon My Shoulderaaaabbbbbzzz12345678"

-- this doesn't work
set x to "Drive:Users:me:Desktop:I Once Had a Sparrow Alight Upon My Shoulderaaaabbbbbzzz12345678"
tell application "BBEdit" to open alias x

--it only works for names longer than 63 characters as:
tell application "BBEdit" to open x


Ah, the joys of AppleScript. I hear AppleScript 2.0 is an exciting upgrade!

Thanks again.


--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to