Re: I'm lost (as usual)
Re: I'm lost (as usual)
- Subject: Re: I'm lost (as usual)
- From: Robert Poland <email@hidden>
- Date: Fri, 11 Nov 2016 16:50:57 -0700
- Z-usanet-msgid: XID804ukkXY86880X31
I thought that would get the wrong Library.
The script below will open the folder, but not close it??? errors. "can't get window" ?
set UniversalScriptsFldr to (path to library folder as text) & "Scripts:Universal Scripts" as alias
tell application "Finder"
activate
set windowList to name of Finder windows as text
delay # one second
display dialog windowList & return & UniversalScriptsFldr
if windowList contains "Universal" then
tell application "Finder" to close window "UniversalScriptsFldr"
else
open (folder UniversalScriptsFldr)
end if
end tell
> On Nov 11, 2016, at 4:37:PM, Stockly, Ed <email@hidden> wrote:
>
> This is how I'd do it:
>
> set UniversalScriptsFldr to ((path to library folder as text) &
> "Scripts:Universal Scripts") as alias
>
> On 11/11/16, 3:27 PM,
> "applescript-users-bounces+ed.stockly=email@hidden on
> behalf of Robert Poland"
> <applescript-users-bounces+ed.stockly=email@hidden on
> behalf of email@hidden> wrote:
>
>> Hi,
>>
>> How do I script the following;
>>
>> set UniversalScriptsFldr to ((path to) folder "/Library" as text) &
>> "Scripts:Universal Scripts" as alias
>>
>> TIA,
>>
>> Robert Poland
>> Fort Collins, CO
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