• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I'm lost (as usual)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: I'm lost (as usual)
      • From: "Stockly, Ed" <email@hidden>
References: 
 >I'm lost (as usual) (From: Robert Poland <email@hidden>)
 >Re: I'm lost (as usual) (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: I'm lost (as usual)
  • Next by Date: Re: I'm lost (as usual)
  • Previous by thread: Re: I'm lost (as usual)
  • Next by thread: Re: I'm lost (as usual)
  • Index(es):
    • Date
    • Thread