• 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: Accessing network folders in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing network folders in AppleScript


  • Subject: Re: Accessing network folders in AppleScript
  • From: Dave Lyons <email@hidden>
  • Date: Thu, 29 Sep 2005 19:57:23 -0700

I think I follow, but I'm not sure. I don't see a "display dialog" in your script, so I'm guessing there was one in the version you expected to give the user a dialog box.

But...are you saying this script doesn't run at all? That is, if you replace the entire script with

     display dialog "It ran."

...does this also fail to run, in the same way, the first time you choose it from the script menu?

Cheers,

--Dave

On Sep 29, 2005, at 1:26 PM, Charles Wesley wrote:

I am writing a very simple script that reads the modification date of
a folder on a network share.  The folder is on a Windows server and is
mounted on each of the Mac computers as xshare$.  My script is also
located on xshare$.

Here is my script snippet:

set theFolderPath to "xshare$:xxxxxxx:xxxxxxx:"
tell application "Finder"
	set theFolder to folder theFolderPath
	set folderDate to modification date of theFolder
end tell


The script is then supposed to give the user a dialog box with the modification date. When I try running this script on a new machine (putting an alias to the folder containing the script on that machine's script menu), the script fails to run the first time (i.e., nothing happens). *However*, the second time, and all subsequent times, the script runs successfully. This pattern will repeat if I restart the computer.

Does anyone have any ideas why this script wouldn't run the first time?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Accessing network folders in AppleScript
      • From: Wayne Melrose <email@hidden>
References: 
 >Accessing network folders in AppleScript (From: Charles Wesley <email@hidden>)

  • Prev by Date: Re: Applescript-users Digest, Vol 2, Issue 627
  • Next by Date: Re: Accessing network folders in AppleScript
  • Previous by thread: Accessing network folders in AppleScript
  • Next by thread: Re: Accessing network folders in AppleScript
  • Index(es):
    • Date
    • Thread