Re: How to make typeAlias ?

Shane Stanley

On 30 Aug 2017, at 8:04 pm, Gerriet M. Denkmann <g@...> wrote:

DescType descriptorType = dirctObj.descriptorType;
if ( descriptorType == typeAlias ) // 'alis'
*** This is the stuff I need to test ***
… but I do not know how to trigger this path
… maybe some AppleScript?
tell application “MyApp"
open alias "Macintosh HD:path:to:file" -- HFS path
end tell

or if you don't want to use an HFS path directly:

set theFile to POSIX file "/tmp/abc" as alias
tell application “MyApp"
open theFile
end tell

Shane Stanley <sstanley@...>
<>, <>

Join to automatically receive all group messages.