• 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: Need to run script periodically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to run script periodically


  • Subject: Re: Need to run script periodically
  • From: David Crowe <email@hidden>
  • Date: Sun, 12 Feb 2017 21:29:05 +0800

Brian;

I’m confused as to why you can’t save as an app. If the script is also a folder action script you could have a .scpt file and a .app file

- David Crowe

>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 12 Feb 2017 21:34:19 +1100
> From: Brian Christmas <email@hidden>
> To: Applescript Users <email@hidden>
> Subject: Re: Need to run script periodically
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> G’day again.
>
> Sorry, sent original to wrong list. Please read all to catch up.
>
> I’m making no progress after many hours of research. Only realized I could leave the ‘killall' completely out of the picture.
>
> The command ‘launch’ is recommended for scripted Apps, but nothing in Googling shows how to actually run an Applescript from a ’do shell script'.
>
> The script
>
> 	tell application "Finder"
> 		set pathToFolderActionscripts to (path to Folder Action scripts folder from user domain) as text
> 	end tell
> 	set scriptPath to quoted form of POSIX path of (pathToFolderActionscripts & "ftp Downloader.scpt" as text)
> 	do shell script ("sleep 10&&open -a " & scriptPath)
>
> errors with…
>
>
>
> It seems shell scripts are reserved for opening/launching/running Applications ONLY.
>
> These lead to a stack overflow (naturally).
>
> 	#do shell script ("sleep 10")
> 	# tell me to run
>
> I’ve found a list of the commands other than ‘-a’, they’re
>
> -a, -b,
>
> Any suggestions on what I might do, please?
>
> Regards
>
> Santa
>


 _______________________________________________
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: Need to run script periodically
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Need to run script periodically
  • Next by Date: Re: Need to run script periodically
  • Previous by thread: Re: Need to run script periodically (updated for your info)
  • Next by thread: Re: Need to run script periodically
  • Index(es):
    • Date
    • Thread