• 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: ongoing Senior moments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ongoing Senior moments


  • Subject: Re: ongoing Senior moments
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 10 Nov 2014 09:28:45 -0500

> On Nov 9, 2014, at 14:03 , Robert Poland <email@hidden> wrote:
>
> Hi,
>
> This script snippet confounds me;
>
> tell application "Finder"
> 	set theFolder to "" & "~/Pictures/APOD ƒ/"
> 	set theFolder to  (choose file default location alias the folder
> end tell
>
> I keep getting error; Expected “,” but found end of line.
> Using "~/Pictures/APOD ƒ/“ in place of theFolder doesn’t help.
> After restarting Smile I get the error “file Alias "~/Pictures:APOD ƒ/“ of <<script>> wasn’t found.
>
> using;
> set theFolder to choose file default location alias "Macintosh HD:Users:rpoland:Pictures:APOD ƒ”
> Works, but I want it to be independent pf which machine it’s on.
>
> The goal is to do a choose folder with a default.
>
>
> Robert Poland
> Fort Collins CO


I don’t know exactly where you want to place the file, but if you want to get the path to the current user picture folder then use:

<script>
path to “pdoc"
</script>

For instance you can try
<script>
set p to path to "pdoc"
tell application "Finder" to open p
</script>


Deivy Petrescu
email@hidden


 _______________________________________________
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: ongoing Senior moments
      • From: Robert Poland <email@hidden>
References: 
 >ongoing Senior moments (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: ongoing Senior moments
  • Next by Date: Re: ongoing Senior moments
  • Previous by thread: Re: ongoing Senior moments
  • Next by thread: Re: ongoing Senior moments
  • Index(es):
    • Date
    • Thread