| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Help please: 5v6 |
| From: | Lennox Jacob <lenpartico@yahoo.com> |
| Date: | Fri, 19 Feb 2010 20:55:15 -0800 (PST) |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@yahoo.com |
| Delivered-to: | listarchive@realsoftware.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1266641715; bh=MwouJq+vNMrUJruH8SqSLElDar3ww+O5iKZhT5giat0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=S30Ej/86WvDR0o30a6Z4fMIth52Yq7LiKsqapUYSdgUG1IJv50BQ7N427E+a3W/NjlqGaXGwH8qpqwfaULAkS4rR8ijdh8+6m7qyYqSom9RPLu3B1inP9nVjhbllYjP32eWd0RjRpT1pPkczxX5HD9vbmyIDhuEnoavjR60tlFA= |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WqmsRRPg0fie6ui5oeYfQ20gkf2Z63NFC+99dGUrZwR88gB3kYS5QpSAgnC0a+AG+xI2XlRwXHENQ3QrtvkSxkw4rpd/8jJcUnTwuM9C66WNchFcq7Dl9/zOr6dAe/GuF41AMwVWdYN77Y3KY7zO2EPXQuM0g4MF4xWqlYDWhSs=; |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
Hello,
I have this code in a pushbutton which works flawlessly on Mac OSX.5 but gives
a NOE after two clicks of the pushbutton on Mac OSX.6.
Dim FolderA, FolderB As folderitem
FolderA = SpecialFolder.Desktop.Child("A")
If not FolderA.Exists then FolderA.CreateAsFolder
FolderA.launch
Dim TOS as TextOutputStream
Dim MyNewFile As folderitem = FolderA.Child("NF ")
TOS = MyNewFile.CreateTextFile
TOS = Nil
FolderB = FolderA.Child("B")
If not FolderB.Exists then FolderB.CreateAsFolder
FolderB.launch
Dim x as integer = 0
Dim y as integer
for y = FolderB.Count DownTo 1
Dim myAddedFile As folderitem = FolderB.TrueItem(y)
If myAddedFile.name = ".DS_Store" or myAddedFile.directory or
myAddedFile.visible = false then
elseIf myAddedFile.name.Left(3) = "NF " then
X = X +1
end if
next y
MyNewFile.name = MyNewFile.name + " " + Str(X)
MyNewFile.MoveFileTo FolderB
MyNewFile = FolderA.Child("NF ")
If not MyNewFile.exists then
TOS = MyNewFile.CreateTextFile
TOS = Nil
end if
What can I do to get it working on Mac OSX.6?
Thanks.
Lennox
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Computed Properties: A Columbus Moment, kev |
|---|---|
| Next by Date: | AE Monitor Replacement?, kev |
| Previous by Thread: | Computed Properties: A Columbus Moment, Brad Hutchings |
| Next by Thread: | Re: Help please: 5v6, Charles Yeomans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |