Re: ongoing Senior moments
Re: ongoing Senior moments
- Subject: Re: ongoing Senior moments
- From: Robert Poland <email@hidden>
- Date: Mon, 10 Nov 2014 06:59:27 -0700
> On Nov 10, 2014, at 6:35:AM, Luther Fuller <email@hidden> wrote:
>
> On Nov 9, 2014, at 7:02 PM, Robert Poland wrote:
>
>>
>>> On Nov 9, 2014, at 5:56:PM, Christopher Stone <email@hidden> wrote:
>>>
>>> On Nov 09, 2014, at 18:29, Robert Poland <email@hidden> wrote:
>>>> …
>>>> set startLoc to (folder "APOD ƒ" of folder "Pictures" of startup disk) as alias
>>>>
>>>> Won’t compile in Yosemite.
>>>
>
> The alternates I gave ARE Finder references and I should have written
>
> tell application "Finder" to set startLoc to (folder "Applications" of startup disk) as alias
>
> or this
> tell application "Finder" to set startLoc to (folder "APOD ƒ" of folder "Pictures" of startup disk) as alias
>
>
> Does this compile in Yosemite ?
No, neither.
SCRIPT>
tell application "Finder" to set startLoc to (folder "Applications" of startup disk) as alias
try
display dialog startLoc & return
on error
beep
end try
RESULT>
tell application "Finder"
get folder "Applications" of startup disk
--> alias "Macintosh HD:Applications:"
end tell
tell application "Script Editor"
display dialog {alias "Macintosh HD:Applications:", "
"}
--> error number -1700 from {alias "Macintosh HD:Applications:", "
"} to string
end tell
tell current application
beep
end tell
SCRIPT>
tell application "Finder" to set startLocation to (folder "APOD ƒ" of folder "Pictures" of startup disk) as alias
try
display dialog startLoc & return
on error
beep
end try
RESULT>
tell application "Finder" to set startLocation to (folder "APOD ƒ" of folder "Pictures" of startup disk) as alias
try
display dialog startLoc & return
on error
beep
end try
Robert Poland
Fort Collins CO
_______________________________________________
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